about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorStjepan Glavina <stjepang@gmail.com>2017-07-04 15:14:08 +0200
committerStjepan Glavina <stjepang@gmail.com>2017-07-04 15:14:08 +0200
commit558ce91e09226abb12b70cf03df133224c467376 (patch)
tree3260913b3e8a9a11a8a15b083246103391adfbf5 /src/liballoc
parentd41b791c1af56b1f538cc6f77e597b7ad5b4d223 (diff)
downloadrust-558ce91e09226abb12b70cf03df133224c467376.tar.gz
rust-558ce91e09226abb12b70cf03df133224c467376.zip
Minor fix in docs for Vec
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index e118d406ecf..6918e057ab1 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -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.
 ///