Skip to content

Commit 26096c8

Browse files
committed
[doc] Fix links in Ownership section of the book
1 parent ad7fe65 commit 26096c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/doc/book/ownership.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Vectors have a [generic type][generics] `Vec<T>`, so in this example `v` will ha
6767

6868
[arrays]: primitive-types.html#arrays
6969
[vectors]: vectors.html
70-
[heap]: the-stack-and-the-heap.html
70+
[heap]: the-stack-and-the-heap.html#the-heap
7171
[stack]: the-stack-and-the-heap.html#the-stack
7272
[bindings]: variable-bindings.html
7373
[generics]: generics.html
@@ -136,6 +136,8 @@ Rust allocates memory for an integer [i32] on the [stack][sh], copies the bit
136136
pattern representing the value of 10 to the allocated memory and binds the
137137
variable name x to this memory region for future reference.
138138

139+
[i32]: primitive-types.html#numeric-types
140+
139141
Now consider the following code fragment:
140142

141143
```rust

0 commit comments

Comments
 (0)