Skip to content

Commit b3f1650

Browse files
Rollup merge of #56656 - BeatButton:liballoc_string_typo, r=Centril
Fix typo
2 parents b37ad66 + 6f288ea commit b3f1650

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)