Skip to content

Commit a9cfeb3

Browse files
committed
fix typo in push documentation
1 parent ef1a584 commit a9cfeb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/mod.rs

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

0 commit comments

Comments
 (0)