mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
Rollup merge of #33603 - tshepang:no-need, r=apasel422
doc: to_string not needed since we gots coercion
This commit is contained in:
commit
752137f9cb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user