From 6f288ea33712b34c8eabcd57bb10607ab01f0cdb Mon Sep 17 00:00:00 2001 From: BeatButton Date: Sun, 9 Dec 2018 14:10:20 -0700 Subject: [PATCH] Fix typo --- src/liballoc/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index 006c602649b74..4652c0e7efa70 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -2169,7 +2169,7 @@ impl 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 }