Skip to content

Commit

Permalink
Small docs improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
laurmaedje committed Sep 16, 2024
1 parent 44c957a commit 33de214
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ struct Header {

impl<T> EcoVec<T> {
/// Create a new, empty vector.
///
/// This does not allocate.
#[inline]
pub const fn new() -> Self {
Self {
Expand All @@ -114,7 +116,7 @@ impl<T> EcoVec<T> {
}
}

/// Create a new, empty vec with at least the specified capacity.
/// Create a new, empty vector with at least the specified capacity.
#[inline]
pub fn with_capacity(capacity: usize) -> Self {
let mut vec = Self::new();
Expand Down

0 comments on commit 33de214

Please sign in to comment.