about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorRyan Scott <ryan@ryan-scott.me>2020-10-14 16:58:59 +1100
committerRyan Scott <rscott@zendesk.com>2020-10-15 23:21:26 +1100
commit8446d949f1d53b2c7ee4155f8fbf3d1390e3f203 (patch)
treedf256530e8b629e248bb57da772145888b00883a /library/alloc/src
parent000ec5e2f8e7bf3f5da59f6f219fe02dff42d116 (diff)
downloadrust-8446d949f1d53b2c7ee4155f8fbf3d1390e3f203.tar.gz
rust-8446d949f1d53b2c7ee4155f8fbf3d1390e3f203.zip
Following #74010 by converting some newer cases of backticked O notations to be italicized
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/raw_vec.rs2
-rw-r--r--library/alloc/src/vec.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/raw_vec.rs b/library/alloc/src/raw_vec.rs
index 1844d3ae004..7c834f034c1 100644
--- a/library/alloc/src/raw_vec.rs
+++ b/library/alloc/src/raw_vec.rs
@@ -259,7 +259,7 @@ impl<T, A: AllocRef> RawVec<T, A> {
     /// Ensures that the buffer contains at least enough space to hold `len +
     /// additional` elements. If it doesn't already have enough capacity, will
     /// reallocate enough space plus comfortable slack space to get amortized
-    /// `O(1)` behavior. Will limit this behavior if it would needlessly cause
+    /// *O*(1) behavior. Will limit this behavior if it would needlessly cause
     /// itself to panic.
     ///
     /// If `len` exceeds `self.capacity()`, this may fail to actually allocate
diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs
index 5e68f76693f..808adb5d47c 100644
--- a/library/alloc/src/vec.rs
+++ b/library/alloc/src/vec.rs
@@ -259,7 +259,7 @@ use crate::raw_vec::RawVec;
 /// `Vec` does not guarantee any particular growth strategy when reallocating
 /// when full, nor when [`reserve`] is called. The current strategy is basic
 /// and it may prove desirable to use a non-constant growth factor. Whatever
-/// strategy is used will of course guarantee `O(1)` amortized [`push`].
+/// strategy is used will of course guarantee *O*(1) amortized [`push`].
 ///
 /// `vec![x; n]`, `vec![a, b, c, d]`, and
 /// [`Vec::with_capacity(n)`][`Vec::with_capacity`], will all produce a `Vec`