Skip to content

Commit

Permalink
Ch. 4: include link forward to collections
Browse files Browse the repository at this point in the history
Remove the additional, extraneous info from the Ch. 4. section 3 intro.
  • Loading branch information
chriskrycho committed Apr 19, 2024
1 parent 3a8ff9b commit 82df41e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/ch04-03-slices.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 82df41e

Please sign in to comment.