Skip to content

Commit 49dd95b

Browse files
authored
Auto merge of #36564 - vanjacosic:patch-2, r=GuillaumeGomez
Docs: Update to "Ownership" section Found #34865 while looking for easy docs wins I could contribute with.
2 parents 2d1d4d1 + b67a843 commit 49dd95b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/book/ownership.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ of scope at the end of `foo()`, Rust will clean up everything related to the
5757
vector, even the heap-allocated memory. This happens deterministically, at the
5858
end of the scope.
5959

60-
We'll cover [vectors] in detail later in this chapter; we only use them
60+
We covered [vectors] in the previous chapter; we use them
6161
here as an example of a type that allocates space on the heap at runtime. They
6262
behave like [arrays], except their size may change by `push()`ing more
6363
elements onto them.
6464

6565
Vectors have a [generic type][generics] `Vec<T>`, so in this example `v` will have type
66-
`Vec<i32>`. We'll cover generics in detail later in this chapter.
66+
`Vec<i32>`. We'll cover [generics] in detail in a later chapter.
6767

6868
[arrays]: primitive-types.html#arrays
6969
[vectors]: vectors.html

0 commit comments

Comments
 (0)