about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPoliorcetics <poliorcetics@users.noreply.github.com>2020-08-11 21:37:22 +0200
committerGitHub <noreply@github.com>2020-08-11 21:37:22 +0200
commita308e74e1310fb02bcc4b46c44da769dfe426812 (patch)
treeb71e67b23a839414cf5b7141078b8fa2f7d3e574
parent91ba92b6df4d1626c484108d4018f359f07b16ae (diff)
downloadrust-a308e74e1310fb02bcc4b46c44da769dfe426812.tar.gz
rust-a308e74e1310fb02bcc4b46c44da769dfe426812.zip
Add some texts to make the tidy check for unsafe documentation pass
-rw-r--r--library/core/src/slice/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs
index 8ad3c414454..f511ca8eb78 100644
--- a/library/core/src/slice/mod.rs
+++ b/library/core/src/slice/mod.rs
@@ -559,7 +559,7 @@ impl<T> [T] {
             // Use the llvm.bswap intrinsic to reverse u8s in a usize
             let chunk = mem::size_of::<usize>();
             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
                 //   above. So `chunk - 1` is positive.