We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00ed73c commit c7b07d5Copy full SHA for c7b07d5
library/alloc/src/fmt.rs
@@ -109,6 +109,16 @@
109
//! parameters (corresponding to `format_spec` in [the syntax](#syntax)). These
110
//! parameters affect the string representation of what's being formatted.
111
//!
112
+//! The colon `:` in format syntax divides indentifier of the input data and
113
+//! the formatting options, the colon itself does not change anything, only
114
+//! introduces the options.
115
+//!
116
+//! ```
117
+//! let a = 5;
118
+//! let b = &a;
119
+//! println!("{a:e} {b:p}"); // => 5e0 0x7ffe37b7273c
120
121
122
//! ## Width
123
124
//! ```
0 commit comments