diff options
author | HampusM <hampus@hampusmat.com> | 2024-08-27 19:49:46 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-08-27 19:49:46 +0200 |
commit | 8ad76813f7c82e4b35991f9ca40a443e4357e17a (patch) | |
tree | d45ee73e9ae9962a44fbda0c3ae5a35aa25bac3f /src | |
parent | 00541a9c9e07e8f672912d6c0f3d4501b1aba8ed (diff) |
docs: add documentation comment to with_capacity function
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 { |