Skip to content

Commit 96a17ef

Browse files
Mention the :#? format specifier
1 parent 8d8e9ab commit 96a17ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/language/strings.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ println!("{person:?}");
186186

187187
> Note: Using the :? format specifier will use the `Debug` trait to print the
188188
> struct, where leaving it out will use the `Display` trait.
189+
>
190+
> You can also use the `:#?` specifier to pretty-print the debug format.
189191
190192
See also:
191193

0 commit comments

Comments
 (0)