summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-07-05 02:04:07 +0000
committerbors <bors@rust-lang.org>2017-07-05 02:04:07 +0000
commit692b5722363be2de18a27b46db59950124a5101d (patch)
tree5c04f5bdca7b5e51f53e4415bdf34df061ae51c5 /src/liballoc
parent1421bedd511c4c12889c2f22ec0b3e1687715372 (diff)
parent558ce91e09226abb12b70cf03df133224c467376 (diff)
downloadrust-692b5722363be2de18a27b46db59950124a5101d.tar.gz
rust-692b5722363be2de18a27b46db59950124a5101d.zip
Auto merge of #43050 - stjepang:doc-vec-fix-parens, r=frewsxcv
Minor fix in docs for Vec

Added missing parentheses after `mem::size_of::<T>`.
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 1a5975686df..780a51aec3b 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -222,7 +222,7 @@ use Bound::{Excluded, Included, Unbounded};
 /// 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.
 ///