diff options
| author | Matt Harding <majaharding@gmail.com> | 2023-11-08 14:56:35 +0000 |
|---|---|---|
| committer | Matt Harding <majaharding@gmail.com> | 2023-11-08 14:56:35 +0000 |
| commit | c4936340644aa3413d54b8e0859dcc84fd577f45 (patch) | |
| tree | a551c6dc9f67aac7a616b4db0764cff0d1453b2b | |
| parent | ec2b311914a4880235862f3cd65fe24e92e6d3a5 (diff) | |
| download | rust-c4936340644aa3413d54b8e0859dcc84fd577f45.tar.gz rust-c4936340644aa3413d54b8e0859dcc84fd577f45.zip | |
Add link to Formatting traits from alternate forms
| -rw-r--r-- | library/alloc/src/fmt.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/alloc/src/fmt.rs b/library/alloc/src/fmt.rs index 1e2c35bf735..6f96a271442 100644 --- a/library/alloc/src/fmt.rs +++ b/library/alloc/src/fmt.rs @@ -188,6 +188,10 @@ //! * `#X` - precedes the argument with a `0x` //! * `#b` - precedes the argument with a `0b` //! * `#o` - precedes the argument with a `0o` +//! +//! See [Formatting traits](#formatting-traits) for a description of what the `?`, `x`, `X`, +//! `b`, and `o` flags do. +//! //! * `0` - This is used to indicate for integer formats that the padding to `width` should //! both be done with a `0` character as well as be sign-aware. A format //! like `{:08}` would yield `00000001` for the integer `1`, while the |
