Skip to content

Commit

Permalink
Fixed link
Browse files Browse the repository at this point in the history
Changed "[vector]" to a link to the vector documentation.
  • Loading branch information
timmontague committed Mar 7, 2016
1 parent 2f34986 commit 150b1c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/book/ownership.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn foo() {
}
```

When `v` comes into scope, a new [vector] is created on [the stack][stack],
When `v` comes into scope, a new [vector][vectors] is created on [the stack][stack],
and it allocates space on [the heap][heap] for its elements. When `v` goes out
of scope at the end of `foo()`, Rust will clean up everything related to the
vector, even the heap-allocated memory. This happens deterministically, at the
Expand Down

0 comments on commit 150b1c9

Please sign in to comment.