about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorTakashi Idobe <idobetakashi@gmail.com>2021-09-24 08:33:49 -0500
committerGitHub <noreply@github.com>2021-09-24 08:33:49 -0500
commitcebba31d4ae6bd1dea410dc7d74e496846f5980d (patch)
tree852f4878fd4f83c0bfd35113c13874dd748df93c /library/alloc/src
parentcb1c06fdd8921071a353b70d4752d834a76c5f94 (diff)
downloadrust-cebba31d4ae6bd1dea410dc7d74e496846f5980d.tar.gz
rust-cebba31d4ae6bd1dea410dc7d74e496846f5980d.zip
unitalicize O(1) complexities
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/collections/linked_list.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/alloc/src/collections/linked_list.rs b/library/alloc/src/collections/linked_list.rs
index dfd0039baf6..c5c32674eec 100644
--- a/library/alloc/src/collections/linked_list.rs
+++ b/library/alloc/src/collections/linked_list.rs
@@ -658,7 +658,7 @@ impl<T> LinkedList<T> {
     /// Provides a reference to the front element, or `None` if the list is
     /// empty.
     ///
-    /// This operation should compute in *O*(*1*) time.
+    /// This operation should compute in *O*(1) time.
     ///
     /// # Examples
     ///
@@ -680,7 +680,7 @@ impl<T> LinkedList<T> {
     /// Provides a mutable reference to the front element, or `None` if the list
     /// is empty.
     ///
-    /// This operation should compute in *O*(*1*) time.
+    /// This operation should compute in *O*(1) time.
     ///
     /// # Examples
     ///
@@ -708,7 +708,7 @@ impl<T> LinkedList<T> {
     /// Provides a reference to the back element, or `None` if the list is
     /// empty.
     ///
-    /// This operation should compute in *O*(*1*) time.
+    /// This operation should compute in *O*(1) time.
     ///
     /// # Examples
     ///
@@ -730,7 +730,7 @@ impl<T> LinkedList<T> {
     /// Provides a mutable reference to the back element, or `None` if the list
     /// is empty.
     ///
-    /// This operation should compute in *O*(*1*) time.
+    /// This operation should compute in *O*(1) time.
     ///
     /// # Examples
     ///