Skip to content

Commit 9854143

Browse files
committed
Auto merge of #23868 - mbrubeck:doc-edit, r=Manishearth
r? @steveklabnik
2 parents 3e8a773 + 1081626 commit 9854143

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/libcollections/fmt.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -368,12 +368,12 @@
368368
//! should always be printed.
369369
//! * '-' - Currently not used
370370
//! * '#' - This flag is indicates that the "alternate" form of printing should
371-
//! be used. By default, this only applies to the integer formatting
372-
//! traits and performs like:
373-
//! * `x` - precedes the argument with a "0x"
374-
//! * `X` - precedes the argument with a "0x"
375-
//! * `t` - precedes the argument with a "0b"
376-
//! * `o` - precedes the argument with a "0o"
371+
//! be used. For array slices, the alternate form omits the brackets.
372+
//! For the integer formatting traits, the alternate forms are:
373+
//! * `#x` - precedes the argument with a "0x"
374+
//! * `#X` - precedes the argument with a "0x"
375+
//! * `#t` - precedes the argument with a "0b"
376+
//! * `#o` - precedes the argument with a "0o"
377377
//! * '0' - This is used to indicate for integer formats that the padding should
378378
//! both be done with a `0` character as well as be sign-aware. A format
379379
//! like `{:08}` would yield `00000001` for the integer `1`, while the

0 commit comments

Comments
 (0)