mirror of https://github.com/rust-lang/rust.git
fix typo in push documentation
This commit is contained in:
parent
ef1a584842
commit
a9cfeb34dd
|
@ -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))]
|
||||
|
|
Loading…
Reference in New Issue