File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -171,12 +171,10 @@ and a length.
171171## Slicing syntax
172172
173173You can use a combo of ` & ` and ` [] ` to create a slice from various things. The
174- ` & ` indicates that slices are similar to [ references] , which we will cover in
174+ ` & ` indicates that slices are similar to [ references] [ references ] , which we will cover in
175175detail later in this section. The ` [] ` s, with a range, let you define the
176176length of the slice:
177177
178- [ references ] : references-and-borrowing.html
179-
180178``` rust
181179let a = [0 , 1 , 2 , 3 , 4 ];
182180let complete = & a [.. ]; // A slice containing all of the elements in a
@@ -198,7 +196,7 @@ documentation][slice].
198196Rust’s ` str ` type is the most primitive string type. As an [ unsized type] [ dst ] ,
199197it’s not very useful by itself, but becomes useful when placed behind a
200198reference, like ` &str ` . We'll elaborate further when we cover
201- [ Strings] [ strings ] and [ references] .
199+ [ Strings] [ strings ] and [ references] [ references ] .
202200
203201[ dst ] : unsized-types.html
204202[ strings ] : strings.html
You can’t perform that action at this time.
0 commit comments