mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-14 16:03:17 +00:00
Rollup merge of #56656 - BeatButton:liballoc_string_typo, r=Centril
Fix typo
This commit is contained in:
commit
b3f1650b34
@ -2169,7 +2169,7 @@ impl<T: fmt::Display + ?Sized> ToString for T {
|
||||
use core::fmt::Write;
|
||||
let mut buf = String::new();
|
||||
buf.write_fmt(format_args!("{}", self))
|
||||
.expect("a Display implementation return an error unexpectedly");
|
||||
.expect("a Display implementation returned an error unexpectedly");
|
||||
buf.shrink_to_fit();
|
||||
buf
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user