comments from @lzutao
This commit is contained in:
parent
624c5da1aa
commit
3325ff6df4
2 changed files with 2 additions and 2 deletions
|
@ -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!(
|
||||
|
|
|
@ -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()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue