about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/core/src/str/iter.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/library/core/src/str/iter.rs b/library/core/src/str/iter.rs
index 93248d15833..524a672bfbd 100644
--- a/library/core/src/str/iter.rs
+++ b/library/core/src/str/iter.rs
@@ -1282,9 +1282,7 @@ impl<'a> SplitAsciiWhitespace<'a> {
             return "";
         }
 
-        // Safety:
-        //
-        // Slice is created from str.
+        // SAFETY: Slice is created from str.
         unsafe { crate::str::from_utf8_unchecked(&self.inner.iter.iter.v) }
     }
 }