Skip to content

Commit

Permalink
Merge pull request #3363 from vinsburg/patch-4
Browse files Browse the repository at this point in the history
Clarified first slices paragraph
  • Loading branch information
chriskrycho committed Apr 19, 2024
2 parents 162d540 + 82df41e commit f9d4e05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ch04-03-slices.md
Original file line number Diff line number Diff line change
@@ -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.

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.
Expand Down

0 comments on commit f9d4e05

Please sign in to comment.