Rollup merge of #33603 - tshepang:no-need, r=apasel422

doc: to_string not needed since we gots coercion
This commit is contained in:
Eduard-Mihai Burtescu 2016-05-16 02:00:18 +03:00
commit 752137f9cb

View File

@ -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