]> git.lizzy.rs Git - rust.git/commitdiff
[doc] Fix links in Ownership section of the book
authorTatsuya Kawano <tatsuya@hibaridb.org>
Fri, 24 Jun 2016 00:08:08 +0000 (08:08 +0800)
committerTatsuya Kawano <tatsuya@hibaridb.org>
Fri, 24 Jun 2016 00:08:08 +0000 (08:08 +0800)
src/doc/book/ownership.md

index f445bed015c00d85c32e8a5a4d6b4e0d992ae7e7..c3e32e56c42666581f597ad0398f9c8f983d6115 100644 (file)
@@ -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