Skip to content

Commit 6f288ea

Browse files
committed
Fix typo
1 parent 850fc6a commit 6f288ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2169,7 +2169,7 @@ impl<T: fmt::Display + ?Sized> ToString for T {
21692169
use core::fmt::Write;
21702170
let mut buf = String::new();
21712171
buf.write_fmt(format_args!("{}", self))
2172-
.expect("a Display implementation return an error unexpectedly");
2172+
.expect("a Display implementation returned an error unexpectedly");
21732173
buf.shrink_to_fit();
21742174
buf
21752175
}

0 commit comments

Comments
 (0)