From 150b1c9217023174f94aebe461f5ba4434533680 Mon Sep 17 00:00:00 2001 From: Tim Montague Date: Mon, 7 Mar 2016 10:30:25 -0800 Subject: [PATCH] Fixed link Changed "[vector]" to a link to the vector documentation. --- src/doc/book/ownership.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- GitLab