Skip to content

Commit

Permalink
comments from @lzutao
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty committed Jul 29, 2019
1 parent 624c5da commit 3325ff6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/liballoc/tests/str.rs
Expand Up @@ -1109,7 +1109,7 @@ fn test_iterator_last() {
}

#[test]
fn test_chars_display() {
fn test_chars_debug() {
let s = "ศไทย中华Việt Nam";
let c = s.chars();
assert_eq!(
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/str/mod.rs
Expand Up @@ -601,7 +601,7 @@ impl<'a> Iterator for Chars<'a> {
}

#[stable(feature = "chars_debug_impl", since = "1.38.0")]
impl<'a> fmt::Debug for Chars<'a> {
impl fmt::Debug for Chars<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "Chars(")?;
f.debug_list().entries(self.clone()).finish()?;
Expand Down

0 comments on commit 3325ff6

Please sign in to comment.