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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue