mirror of https://github.com/rust-lang/book
Ch. 4: include link forward to collections
Remove the additional, extraneous info from the Ch. 4. section 3 intro.
This commit is contained in:
parent
3a8ff9bdd2
commit
82df41e8bd
|
@ -1,9 +1,8 @@
|
|||
## The Slice Type
|
||||
|
||||
*Slices* are a kind of reference, which lets you access a contiguous sub-sequence
|
||||
of elements in a sequential [collection](ch08-00-common-collections.md).
|
||||
Because slices are a kind of reference, they too can borrow access to memory, but
|
||||
not own it.
|
||||
*Slices* let you reference a contiguous sequence of elements in a
|
||||
[collection](ch08-00-common-collections.md) rather than the whole collection. A
|
||||
slice is a kind of reference, so it does not have ownership.
|
||||
|
||||
Here’s a small programming problem: write a function that takes a string of
|
||||
words separated by spaces and returns the first word it finds in that string.
|
||||
|
|
Loading…
Reference in New Issue