Skip to content

Commit

Permalink
Rollup merge of rust-lang#32103 - timmontague:patch-1, r=alexcrichton
Browse files Browse the repository at this point in the history
Fixed link in ownership documentation

Changed "[vector]" to a link to the vector documentation.
  • Loading branch information
steveklabnik committed Mar 8, 2016
2 parents 13ba07b + 150b1c9 commit bf9610d
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 bf9610d

Please sign in to comment.