diff options
| author | Tim Montague <tim@timmontague.com> | 2016-03-07 10:30:25 -0800 |
|---|---|---|
| committer | Tim Montague <tim@timmontague.com> | 2016-03-07 10:30:25 -0800 |
| commit | 150b1c9217023174f94aebe461f5ba4434533680 (patch) | |
| tree | bb62bd6878114324d152a42be7ea86b21ea128ab /src/doc | |
| parent | 2f34986eb0f14b3ce5e17db577abc632a9176380 (diff) | |
| download | rust-150b1c9217023174f94aebe461f5ba4434533680.tar.gz rust-150b1c9217023174f94aebe461f5ba4434533680.zip | |
Fixed link
Changed "[vector]" to a link to the vector documentation.
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/book/ownership.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/book/ownership.md b/src/doc/book/ownership.md index 70d71c14ddf..7f7f7d4c8eb 100644 --- a/src/doc/book/ownership.md +++ b/src/doc/book/ownership.md @@ -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 |
