]> git.lizzy.rs Git - rust.git/commitdiff
Minor fix in docs for Vec
authorStjepan Glavina <stjepang@gmail.com>
Tue, 4 Jul 2017 13:14:08 +0000 (15:14 +0200)
committerStjepan Glavina <stjepang@gmail.com>
Tue, 4 Jul 2017 13:14:08 +0000 (15:14 +0200)
src/liballoc/vec.rs

index e118d406ecf095cbcd91392e6971c920f74546e3..6918e057ab10452b78a78b44cff879eb85b4871b 100644 (file)
 /// 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.
 ///