about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBeatButton <thebeatbutton@gmail.com>2018-12-09 14:10:20 -0700
committerBeatButton <thebeatbutton@gmail.com>2018-12-09 14:10:20 -0700
commit6f288ea33712b34c8eabcd57bb10607ab01f0cdb (patch)
treee94ef2d1ee1a1e8009e1e5db39852f2e728ca576 /src
parent850fc6a4791b3b0ab668f9fb67c35dddd838b01f (diff)
downloadrust-6f288ea33712b34c8eabcd57bb10607ab01f0cdb.tar.gz
rust-6f288ea33712b34c8eabcd57bb10607ab01f0cdb.zip
Fix typo
Diffstat (limited to 'src')
-rw-r--r--src/liballoc/string.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs
index 006c602649b..4652c0e7efa 100644
--- a/src/liballoc/string.rs
+++ b/src/liballoc/string.rs
@@ -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
     }