We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91ba92b commit a308e74Copy full SHA for a308e74
library/core/src/slice/mod.rs
@@ -559,7 +559,7 @@ impl<T> [T] {
559
// Use the llvm.bswap intrinsic to reverse u8s in a usize
560
let chunk = mem::size_of::<usize>();
561
while i + chunk - 1 < ln / 2 {
562
- // SAFETY:
+ // SAFETY: There are several things to check here:
563
//
564
// - Note that `chunk` is either 4 or 8 due to the cfg check
565
// above. So `chunk - 1` is positive.
0 commit comments