Skip to content

Commit

Permalink
Merge pull request #2249 from Vinnl/patch-1
Browse files Browse the repository at this point in the history
Add link to the `Vec<T>` API documentation
  • Loading branch information
carols10cents committed Jul 27, 2020
2 parents 44fbe88 + f11ebee commit 1ef6872
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ch08-01-vectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,12 @@ the program will get at runtime to store in a vector, the enum technique won’t
work. Instead, you can use a trait object, which we’ll cover in Chapter 17.

Now that we’ve discussed some of the most common ways to use vectors, be sure
to review the API documentation for all the many useful methods defined on
to review [the API documentation][vec-api] for all the many useful methods defined on
`Vec<T>` by the standard library. For example, in addition to `push`, a `pop`
method removes and returns the last element. Let’s move on to the next
collection type: `String`!

[data-types]: ch03-02-data-types.html#data-types
[nomicon]: ../nomicon/vec.html
[vec-api]: ../std/vec/struct.Vec.html
[deref]: ch15-02-deref.html#following-the-pointer-to-the-value-with-the-dereference-operator

0 comments on commit 1ef6872

Please sign in to comment.