@@ -51,21 +51,21 @@ fn foo() {
5151}
5252```
5353
54- When ` v ` comes into scope, a new [ vector] [ ] is created, and it allocates space
55- on the heap for each of its elements. When ` v ` goes out of scope at the end of
56- ` foo() ` , Rust will clean up everything related to the vector, even the
54+ When ` v ` comes into scope, a new [ vector] is created, and it allocates space on
55+ [ the heap] [ heap ] for each of its elements. When ` v ` goes out of scope at the
56+ end of ` foo() ` , Rust will clean up everything related to the vector, even the
5757heap-allocated memory. This happens deterministically, at the end of the scope.
5858
59- We'll cover [ vectors] [ vector ] in detail later in this chapter; we only use them
59+ We'll cover [ vectors] in detail later in this chapter; we only use them
6060here as an example of a type that allocates space on the heap at runtime. They
61- behave like [ arrays] [ ] , except their size may change by ` push() ` ing more
61+ behave like [ arrays] , except their size may change by ` push() ` ing more
6262elements onto them.
6363
6464Vectors have a [ generic type] [ generics ] ` Vec<T> ` , so in this example ` v ` will have type
6565` Vec<i32> ` . We'll cover generics in detail later in this chapter.
6666
6767[ arrays ] : primitive-types.html#arrays
68- [ vector ] : vectors.html
68+ [ vectors ] : vectors.html
6969[ heap ] : the-stack-and-the-heap.html
7070[ bindings ] : variable-bindings.html
7171[ generics ] : generics.html
0 commit comments