about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2016-05-16 02:00:18 +0300
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2016-05-16 02:00:18 +0300
commit752137f9cbeea131d4869f903878dc15f71f09f2 (patch)
tree082d8afe822cade97a9bd5282e2d26cd76e8ea5b /src
parente7420fbbae85a62a62163a2ac5c947b76a8eb62d (diff)
parent226cb9c9bd951d24ea5b686d5dbfcf65bd71855c (diff)
Rollup merge of #33603 - tshepang:no-need, r=apasel422
doc: to_string not needed since we gots coercion
Diffstat (limited to 'src')
-rw-r--r--src/libcollections/fmt.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcollections/fmt.rs b/src/libcollections/fmt.rs
index ce1d6ec5a64..c8030c1efd6 100644
--- a/src/libcollections/fmt.rs
+++ b/src/libcollections/fmt.rs
@@ -527,7 +527,7 @@ use string;
 /// use std::fmt;
 ///
 /// let s = fmt::format(format_args!("Hello, {}!", "world"));
-/// assert_eq!(s, "Hello, world!".to_string());
+/// assert_eq!(s, "Hello, world!");
 /// ```
 ///
 /// Please note that using [`format!`][format!] might be preferrable.
@@ -535,7 +535,7 @@ use string;
 ///
 /// ```
 /// let s = format!("Hello, {}!", "world");
-/// assert_eq!(s, "Hello, world!".to_string());
+/// assert_eq!(s, "Hello, world!");
 /// ```
 ///
 /// [format!]: ../macro.format!.html