Add some texts to make the tidy check for unsafe documentation pass

This commit is contained in:
Poliorcetics
2020-08-11 21:37:22 +02:00
committed by GitHub
parent 91ba92b6df
commit a308e74e13

View File

@@ -559,7 +559,7 @@ impl<T> [T] {
// Use the llvm.bswap intrinsic to reverse u8s in a usize // Use the llvm.bswap intrinsic to reverse u8s in a usize
let chunk = mem::size_of::<usize>(); let chunk = mem::size_of::<usize>();
while i + chunk - 1 < ln / 2 { while i + chunk - 1 < ln / 2 {
// SAFETY: // SAFETY: There are several things to check here:
// //
// - Note that `chunk` is either 4 or 8 due to the cfg check // - Note that `chunk` is either 4 or 8 due to the cfg check
// above. So `chunk - 1` is positive. // above. So `chunk - 1` is positive.