File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 19
19
//! format!("{value}", value=4); // => "4"
20
20
//! format!("{} {}", 1, 2); // => "1 2"
21
21
//! format!("{:04}", 42); // => "0042" with leading zeros
22
+ //! format!("{:#?}", (100, 200)); // => "(
23
+ //! // 100,
24
+ //! // 200,
25
+ //! // )"
22
26
//! ```
23
27
//!
24
28
//! From these, you can see that the first argument is a format string. It is
163
167
//! * `-` - Currently not used
164
168
//! * `#` - This flag indicates that the "alternate" form of printing should
165
169
//! be used. The alternate forms are:
166
- //! * `#?` - pretty-print the [`Debug`] formatting
170
+ //! * `#?` - pretty-print the [`Debug`] formatting (newline and indent)
167
171
//! * `#x` - precedes the argument with a `0x`
168
172
//! * `#X` - precedes the argument with a `0x`
169
173
//! * `#b` - precedes the argument with a `0b`
You can’t perform that action at this time.
0 commit comments