diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-06-28 16:05:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-28 16:05:14 +0200 |
| commit | 86e4a034af977cb3525e1b23933faccda6b138ca (patch) | |
| tree | 9c0651682f550d5d16d83ff04bcfa671e63da85a | |
| parent | adc70bdc9036d2ee8538dbff2a8686294f423f65 (diff) | |
| parent | 26096c84e34220c51f30d154e0ca37f739cb9b4a (diff) | |
| download | rust-86e4a034af977cb3525e1b23933faccda6b138ca.tar.gz rust-86e4a034af977cb3525e1b23933faccda6b138ca.zip | |
Rollup merge of #34442 - tatsuya6502:doc-book-ownership, r=steveklabnik
[doc] Fix links in Ownership section of the book - Add a missing link definition for `[i32]`. - Like `[stack]` link is pointing to `...#the-stack`, append `#the-heap` to `[heap]` link.
| -rw-r--r-- | src/doc/book/ownership.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/doc/book/ownership.md b/src/doc/book/ownership.md index f445bed015c..c3e32e56c42 100644 --- a/src/doc/book/ownership.md +++ b/src/doc/book/ownership.md @@ -67,7 +67,7 @@ Vectors have a [generic type][generics] `Vec<T>`, so in this example `v` will ha [arrays]: primitive-types.html#arrays [vectors]: vectors.html -[heap]: the-stack-and-the-heap.html +[heap]: the-stack-and-the-heap.html#the-heap [stack]: the-stack-and-the-heap.html#the-stack [bindings]: variable-bindings.html [generics]: generics.html @@ -136,6 +136,8 @@ Rust allocates memory for an integer [i32] on the [stack][sh], copies the bit pattern representing the value of 10 to the allocated memory and binds the variable name x to this memory region for future reference. +[i32]: primitive-types.html#numeric-types + Now consider the following code fragment: ```rust |
