From 8ad76813f7c82e4b35991f9ca40a443e4357e17a Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 27 Aug 2024 19:49:46 +0200 Subject: docs: add documentation comment to with_capacity function --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 { -- cgit v1.2.3-18-g5258