Skip to content

Commit a308e74

Browse files
authored
Add some texts to make the tidy check for unsafe documentation pass
1 parent 91ba92b commit a308e74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/slice/mod.rs

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

0 commit comments

Comments
 (0)