]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/iter/range.rs
Rollup merge of #91770 - TaKO8Ki:suggest-adding-cfg-test, r=joshtriplett
[rust.git] / library / core / src / iter / range.rs
index 06733a1b50b9198cf88c66ae0fb99e7848229523..0ae94c05da6583c11d3df41058fa9eee57050202 100644 (file)
@@ -777,7 +777,7 @@ unsafe fn __iterator_get_unchecked(&mut self, idx: usize) -> Self::Item
     usize u8 u16
     isize i8 i16
 
-    // These are incorect per the reasoning above,
+    // These are incorrect per the reasoning above,
     // but removing them would be a breaking change as they were stabilized in Rust 1.0.0.
     // So e.g. `(0..66_000_u32).len()` for example will compile without error or warnings
     // on 16-bit platforms, but continue to give a wrong result.
@@ -805,7 +805,7 @@ unsafe fn __iterator_get_unchecked(&mut self, idx: usize) -> Self::Item
     u8
     i8
 
-    // These are incorect per the reasoning above,
+    // These are incorrect per the reasoning above,
     // but removing them would be a breaking change as they were stabilized in Rust 1.26.0.
     // So e.g. `(0..=u16::MAX).len()` for example will compile without error or warnings
     // on 16-bit platforms, but continue to give a wrong result.