We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9f9727 + c7b07d5 commit e522d08Copy full SHA for e522d08
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