about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJacob Asper <jacobasper191@gmail.com>2024-02-18 06:02:05 -0500
committerJacob Asper <jacobasper191@gmail.com>2024-02-18 06:02:05 -0500
commita9cfeb34ddd4b859042f8d8f02ae96a0dbf8574b (patch)
treef84d3a038cb7bfe67f88d50dfa4de4ab7e97ec1f
parentef1a58484286454af6815d7e8a2f52c10b1449f2 (diff)
downloadrust-a9cfeb34ddd4b859042f8d8f02ae96a0dbf8574b.tar.gz
rust-a9cfeb34ddd4b859042f8d8f02ae96a0dbf8574b.zip
fix typo in push documentation
-rw-r--r--library/alloc/src/vec/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs
index e9a57c0a47b..b4eee69e31f 100644
--- a/library/alloc/src/vec/mod.rs
+++ b/library/alloc/src/vec/mod.rs
@@ -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))]