summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-08-27 19:49:46 +0200
committerHampusM <hampus@hampusmat.com>2024-08-27 19:49:46 +0200
commit8ad76813f7c82e4b35991f9ca40a443e4357e17a (patch)
treed45ee73e9ae9962a44fbda0c3ae5a35aa25bac3f /src
parent00541a9c9e07e8f672912d6c0f3d4501b1aba8ed (diff)
docs: add documentation comment to with_capacity function
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 {