Merge pull request #3363 from vinsburg/patch-4

Clarified first slices paragraph
This commit is contained in:
Chris Krycho 2024-04-19 12:51:38 -06:00 committed by GitHub
commit f9d4e058a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
## The Slice Type
*Slices* let you reference a contiguous sequence of elements in a collection
rather than the whole collection. A slice is a kind of reference, so it does
not have ownership.
*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.
Heres 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.