We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93a3e93 commit 333b0a0Copy full SHA for 333b0a0
src/libstd/macros.rs
@@ -341,8 +341,8 @@ pub mod builtin {
341
/// format string in `format_args!`.
342
///
343
/// ```rust
344
- /// let display = format!("{:?}", format_args!("{} foo {:?}", 1, 2));
345
- /// let debug = format!("{}", format_args!("{} foo {:?}", 1, 2));
+ /// let debug = format!("{:?}", format_args!("{} foo {:?}", 1, 2));
+ /// let display = format!("{}", format_args!("{} foo {:?}", 1, 2));
346
/// assert_eq!("1 foo 2", display);
347
/// assert_eq!(display, debug);
348
/// ```
0 commit comments