diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2016-05-12 23:11:52 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2016-05-12 23:52:05 +0200 |
| commit | 226cb9c9bd951d24ea5b686d5dbfcf65bd71855c (patch) | |
| tree | 8c2ea0dab27afec0edce468b3cb85ccdd72aa3af | |
| parent | e88defe71806ad190588e168e513bc1098f7c9fb (diff) | |
| download | rust-226cb9c9bd951d24ea5b686d5dbfcf65bd71855c.tar.gz rust-226cb9c9bd951d24ea5b686d5dbfcf65bd71855c.zip | |
doc: to_string not needed since we gots coercion
| -rw-r--r-- | src/libcollections/fmt.rs | 4 |
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 |
