fix typo in push documentation

This commit is contained in:
Jacob Asper 2024-02-18 06:02:05 -05:00
parent ef1a584842
commit a9cfeb34dd
1 changed files with 1 additions and 1 deletions

View File

@ -1922,7 +1922,7 @@ impl<T, A: Allocator> Vec<T, A> {
/// # Time complexity
///
/// Takes amortized *O*(1) time. If the vector's length would exceed its capacity after
/// the push,*O*(*capacity*) space is allocated, doubling the capacity and
/// the push, *O*(*capacity*) space is allocated, doubling the capacity and
/// taking *O*(*capacity*) time. This expensive operation is offset by the
/// *capacity* *O*(1) insertions it allows.
#[cfg(not(no_global_oom_handling))]