Skip to content

Commit

Permalink
Minor fix in docs for Vec
Browse files Browse the repository at this point in the history
  • Loading branch information
Stjepan Glavina committed Jul 4, 2017
1 parent d41b791 commit 558ce91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/vec.rs
Expand Up @@ -221,7 +221,7 @@ use raw_vec::RawVec;
/// on an empty Vec, it will not allocate memory. Similarly, if you store zero-sized
/// types inside a `Vec`, it will not allocate space for them. *Note that in this case
/// the `Vec` may not report a [`capacity`] of 0*. `Vec` will allocate if and only
/// if [`mem::size_of::<T>`]` * capacity() > 0`. In general, `Vec`'s allocation
/// if [`mem::size_of::<T>`]`() * capacity() > 0`. In general, `Vec`'s allocation
/// details are subtle enough that it is strongly recommended that you only
/// free memory allocated by a `Vec` by creating a new `Vec` and dropping it.
///
Expand Down

0 comments on commit 558ce91

Please sign in to comment.