Fix references links

There are Duplicate link references in the article and the format is incorrect.
This commit is contained in:
Aaklo Xu 2016-05-20 21:55:19 +08:00
parent d27bdafc3e
commit 01da14b149

View File

@ -171,12 +171,10 @@ and a length.
## Slicing syntax
You can use a combo of `&` and `[]` to create a slice from various things. The
`&` indicates that slices are similar to [references], which we will cover in
`&` indicates that slices are similar to [references][references], which we will cover in
detail later in this section. The `[]`s, with a range, let you define the
length of the slice:
[references]: references-and-borrowing.html
```rust
let a = [0, 1, 2, 3, 4];
let complete = &a[..]; // A slice containing all of the elements in a
@ -198,7 +196,7 @@ documentation][slice].
Rusts `str` type is the most primitive string type. As an [unsized type][dst],
its not very useful by itself, but becomes useful when placed behind a
reference, like `&str`. We'll elaborate further when we cover
[Strings][strings] and [references].
[Strings][strings] and [references][references].
[dst]: unsized-types.html
[strings]: strings.html