We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a8ff9b commit 82df41eCopy full SHA for 82df41e
src/ch04-03-slices.md
@@ -1,9 +1,8 @@
1
## The Slice Type
2
3
-*Slices* are a kind of reference, which lets you access a contiguous sub-sequence
4
-of elements in a sequential [collection](ch08-00-common-collections.md).
5
-Because slices are a kind of reference, they too can borrow access to memory, but
6
-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.
7
8
Here’s a small programming problem: write a function that takes a string of
9
words separated by spaces and returns the first word it finds in that string.
0 commit comments