diff --git a/src/bump_vec.rs b/src/bump_vec.rs index 0d9ee07..7bf16c1 100644 --- a/src/bump_vec.rs +++ b/src/bump_vec.rs @@ -19,9 +19,7 @@ use crate::{ SupportedMinimumAlignment, }; -/// Creates a [`BumpVec`] containing the arguments. -/// -/// `bump_vec!` allows `BumpVec`s to be defined with the same syntax as array expressions. `try` makes the allocations fallible. +/// This is like [`vec!`] but allocates inside a `Bump` or `BumpScope`, returning a [`BumpVec`]. /// /// `$bump` can be a [`Bump`](crate::Bump) or [`BumpScope`] (anything where `$bump.as_scope()` returns a `&BumpScope`). /// diff --git a/src/mut_bump_vec.rs b/src/mut_bump_vec.rs index a94b5ff..f47618d 100644 --- a/src/mut_bump_vec.rs +++ b/src/mut_bump_vec.rs @@ -17,9 +17,7 @@ use crate::{ MinimumAlignment, NoDrop, SetLenOnDropByPtr, SizedTypeProperties, Stats, SupportedMinimumAlignment, }; -/// Creates a [`MutBumpVec`] containing the arguments. -/// -/// `mut_bump_vec!` allows `MutBumpVec`s to be defined with the same syntax as array expressions. `try` makes the allocations fallible. +/// This is like [`vec!`] but allocates inside a `Bump` or `BumpScope`, returning a [`MutBumpVec`]. /// /// `$bump` can be a mutable [`Bump`](crate::Bump) or [`BumpScope`] (anything where `$bump.as_mut_scope()` returns a `&mut BumpScope`). /// diff --git a/src/mut_bump_vec_rev.rs b/src/mut_bump_vec_rev.rs index 91f95b4..51abd4b 100644 --- a/src/mut_bump_vec_rev.rs +++ b/src/mut_bump_vec_rev.rs @@ -18,9 +18,7 @@ use crate::{ SetLenOnDrop, SizedTypeProperties, Stats, SupportedMinimumAlignment, }; -/// Creates a [`MutBumpVecRev`] containing the arguments. -/// -/// `mut_bump_vec_rev!` allows `MutBumpVecRev`s to be defined with the same syntax as array expressions. `try` makes the allocations fallible. +/// This is like [`vec!`] but allocates inside a `Bump` or `BumpScope`, returning a [`MutBumpVecRev`]. /// /// `$bump` can be a mutable [`Bump`](crate::Bump) or [`BumpScope`] (anything where `$bump.as_mut_scope()` returns a `&mut BumpScope`). ///