Skip to content

Commit e0140ff

Browse files
foebRalfJung
andcommitted
Apply suggestions from code review
Co-Authored-By: Ralf Jung <[email protected]>
1 parent a93e99c commit e0140ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/str/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ impl<'a> Chars<'a> {
659659
#[stable(feature = "iter_to_slice", since = "1.4.0")]
660660
#[inline]
661661
pub fn as_str(&self) -> &'a str {
662-
// SAFETY: Chars is only made from a str, which guarantees the iter is valid utf8
662+
// SAFETY: `Chars` is only made from a str, which guarantees the iter is valid utf8
663663
unsafe { from_utf8_unchecked(self.iter.as_slice()) }
664664
}
665665
}

0 commit comments

Comments
 (0)