Skip to content

Commit 558ce91

Browse files
author
Stjepan Glavina
committed
Minor fix in docs for Vec
1 parent d41b791 commit 558ce91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ use raw_vec::RawVec;
221221
/// on an empty Vec, it will not allocate memory. Similarly, if you store zero-sized
222222
/// types inside a `Vec`, it will not allocate space for them. *Note that in this case
223223
/// the `Vec` may not report a [`capacity`] of 0*. `Vec` will allocate if and only
224-
/// if [`mem::size_of::<T>`]` * capacity() > 0`. In general, `Vec`'s allocation
224+
/// if [`mem::size_of::<T>`]`() * capacity() > 0`. In general, `Vec`'s allocation
225225
/// details are subtle enough that it is strongly recommended that you only
226226
/// free memory allocated by a `Vec` by creating a new `Vec` and dropping it.
227227
///

0 commit comments

Comments
 (0)