diff options
| author | Aaklo Xu <aakloxu@gmail.com> | 2016-05-20 21:55:19 +0800 |
|---|---|---|
| committer | Aaklo Xu <aakloxu@gmail.com> | 2016-05-20 21:55:19 +0800 |
| commit | 01da14b149ad3cde321d327c31092fd284d7d73e (patch) | |
| tree | 3addeb50a187be3f42540efb4c21c9bb98f54c76 | |
| parent | d27bdafc3eaab2729d664f82b7d650782640f31a (diff) | |
Fix references links
There are Duplicate link references in the article and the format is incorrect.
| -rw-r--r-- | src/doc/book/primitive-types.md | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/doc/book/primitive-types.md b/src/doc/book/primitive-types.md index 2a4b7ba37f2..330e3bf6a61 100644 --- a/src/doc/book/primitive-types.md +++ b/src/doc/book/primitive-types.md @@ -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]. Rust’s `str` type is the most primitive string type. As an [unsized type][dst], it’s 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 |
