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 a93e99c commit e0140ffCopy full SHA for e0140ff
src/libcore/str/mod.rs
@@ -659,7 +659,7 @@ impl<'a> Chars<'a> {
659
#[stable(feature = "iter_to_slice", since = "1.4.0")]
660
#[inline]
661
pub fn as_str(&self) -> &'a str {
662
- // SAFETY: Chars is only made from a str, which guarantees the iter is valid utf8
+ // SAFETY: `Chars` is only made from a str, which guarantees the iter is valid utf8
663
unsafe { from_utf8_unchecked(self.iter.as_slice()) }
664
}
665
0 commit comments