Skip to content

Commit

Permalink
tweak format_args! docs
Browse files Browse the repository at this point in the history
Swap the variable names in the example.
  • Loading branch information
durka committed Apr 3, 2018
1 parent 93a3e93 commit 333b0a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/macros.rs
Expand Up @@ -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);
/// ```
Expand Down

0 comments on commit 333b0a0

Please sign in to comment.