diff options
| author | James Alan Preiss <donjeezy@gmail.com> | 2016-06-11 20:31:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-11 20:31:01 -0700 |
| commit | 77aeb7b6f1c9ac0f019ccced357d5f5ff7af40c8 (patch) | |
| tree | 78077b15a89e1f28c358f44a7be454bbf2a3f24d | |
| parent | 5c2a5d4499376ade0dd6bb30e8c5909abb42e574 (diff) | |
| download | rust-77aeb7b6f1c9ac0f019ccced357d5f5ff7af40c8.tar.gz rust-77aeb7b6f1c9ac0f019ccced357d5f5ff7af40c8.zip | |
fix typo in primitive-types section on slices
| -rw-r--r-- | src/doc/book/primitive-types.md | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
