about summary refs log tree commit diff
path: root/library/alloc
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2023-03-03 02:35:10 +0100
committerest31 <MTest31@outlook.com>2023-03-03 03:03:29 +0100
commit999405059c817f7d40b59e715c4cb9c3fa650406 (patch)
treeeb4a62e13d10974ede99796e4a3297269bff2fe9 /library/alloc
parent13471d3b2046cce78181dde6cfc146c09f55e29e (diff)
downloadrust-999405059c817f7d40b59e715c4cb9c3fa650406.tar.gz
rust-999405059c817f7d40b59e715c4cb9c3fa650406.zip
Match unmatched backticks in library/
Diffstat (limited to 'library/alloc')
-rw-r--r--library/alloc/src/rc.rs2
-rw-r--r--library/alloc/src/sync.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/rc.rs b/library/alloc/src/rc.rs
index fd1e3e0f75b..932a537c598 100644
--- a/library/alloc/src/rc.rs
+++ b/library/alloc/src/rc.rs
@@ -2145,7 +2145,7 @@ impl<T, I: iter::TrustedLen<Item = T>> ToRcSlice<T> for I {
                 Rc::from_iter_exact(self, low)
             }
         } else {
-            // TrustedLen contract guarantees that `upper_bound == `None` implies an iterator
+            // TrustedLen contract guarantees that `upper_bound == None` implies an iterator
             // length exceeding `usize::MAX`.
             // The default implementation would collect into a vec which would panic.
             // Thus we panic here immediately without invoking `Vec` code.
diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs
index f20486ca9e4..fdd341a06ef 100644
--- a/library/alloc/src/sync.rs
+++ b/library/alloc/src/sync.rs
@@ -2895,7 +2895,7 @@ impl<T, I: iter::TrustedLen<Item = T>> ToArcSlice<T> for I {
                 Arc::from_iter_exact(self, low)
             }
         } else {
-            // TrustedLen contract guarantees that `upper_bound == `None` implies an iterator
+            // TrustedLen contract guarantees that `upper_bound == None` implies an iterator
             // length exceeding `usize::MAX`.
             // The default implementation would collect into a vec which would panic.
             // Thus we panic here immediately without invoking `Vec` code.