Skip to content

Commit c493634

Browse files
committed
Add link to Formatting traits from alternate forms
1 parent ec2b311 commit c493634

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/alloc/src/fmt.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@
188188
//! * `#X` - precedes the argument with a `0x`
189189
//! * `#b` - precedes the argument with a `0b`
190190
//! * `#o` - precedes the argument with a `0o`
191+
//!
192+
//! See [Formatting traits](#formatting-traits) for a description of what the `?`, `x`, `X`,
193+
//! `b`, and `o` flags do.
194+
//!
191195
//! * `0` - This is used to indicate for integer formats that the padding to `width` should
192196
//! both be done with a `0` character as well as be sign-aware. A format
193197
//! like `{:08}` would yield `00000001` for the integer `1`, while the

0 commit comments

Comments
 (0)