diff options
| author | bors <bors@rust-lang.org> | 2016-06-12 00:05:47 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-12 00:05:47 -0700 |
| commit | 5b09f2a1a61ba09fa4d027bc58249e29a7fde78d (patch) | |
| tree | cb7df78589357ff01308b5d556c191f723145b4d | |
| parent | 4c45d26a820570509193fcb317775a8e9ad5efb7 (diff) | |
| parent | c0c43b1e27411fb6fd1df4b8fe44f153f988c8bc (diff) | |
| download | rust-5b09f2a1a61ba09fa4d027bc58249e29a7fde78d.tar.gz rust-5b09f2a1a61ba09fa4d027bc58249e29a7fde78d.zip | |
Auto merge of #34238 - jpreiss:master, r=steveklabnik
fix typo in primitive-types section on slices
| -rw-r--r-- | src/doc/book/loops.md | 2 | ||||
| -rw-r--r-- | src/doc/book/primitive-types.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/book/loops.md b/src/doc/book/loops.md index 97ca2e3e702..e23e6f3a786 100644 --- a/src/doc/book/loops.md +++ b/src/doc/book/loops.md @@ -178,7 +178,7 @@ loop { We now loop forever with `loop` and use `break` to break out early. Issuing an explicit `return` statement will also serve to terminate the loop early. -`continue` is similar, but instead of ending the loop, goes to the next +`continue` is similar, but instead of ending the loop, it goes to the next iteration. This will only print the odd numbers: ```rust diff --git a/src/doc/book/primitive-types.md b/src/doc/book/primitive-types.md index b6a123bb367..ea0bdf29fcc 100644 --- a/src/doc/book/primitive-types.md +++ b/src/doc/book/primitive-types.md @@ -163,7 +163,7 @@ A ‘slice’ is a reference to (or “view” into) another data structure. The useful for allowing safe, efficient access to a portion of an array without copying. For example, you might want to reference only one line of a file read into memory. By nature, a slice is not created directly, but from an existing -variable binding. Slices have a defined length, can be mutable or immutable. +variable binding. Slices have a defined length, and can be mutable or immutable. Internally, slices are represented as a pointer to the beginning of the data and a length. |
