Skip to content

Commit

Permalink
Rollup merge of #56656 - BeatButton:liballoc_string_typo, r=Centril
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
GuillaumeGomez committed Dec 10, 2018
2 parents b37ad66 + 6f288ea commit b3f1650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b3f1650

Please sign in to comment.