summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 0a8333a..1fc7803 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -70,6 +70,8 @@ where
}
}
+ /// Returns a new `MultiVec` with a capacity for `capacity` items. This function will
+ /// allocate memory.
pub fn with_capacity(capacity: usize) -> Self
{
let mut this = Self {