Rollup merge of #49619 - durka:patch-46, r=steveklabnik
tweak core::fmt docs Remove an outdated (pre-1.0!) claim about passing something or other to a function. Also swap the variable names in the example.
This commit is contained in:
@@ -341,8 +341,8 @@ pub mod builtin {
|
||||
/// format string in `format_args!`.
|
||||
///
|
||||
/// ```rust
|
||||
/// let display = format!("{:?}", format_args!("{} foo {:?}", 1, 2));
|
||||
/// let debug = format!("{}", format_args!("{} foo {:?}", 1, 2));
|
||||
/// let debug = format!("{:?}", format_args!("{} foo {:?}", 1, 2));
|
||||
/// let display = format!("{}", format_args!("{} foo {:?}", 1, 2));
|
||||
/// assert_eq!("1 foo 2", display);
|
||||
/// assert_eq!(display, debug);
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user