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.
1 parent dc9112f commit 6418cb4Copy full SHA for 6418cb4
src/libcollections/fmt.rs
@@ -28,6 +28,7 @@
28
//! format!("{:?}", (3, 4)); // => "(3, 4)"
29
//! format!("{value}", value=4); // => "4"
30
//! format!("{} {}", 1, 2); // => "1 2"
31
+//! format!("{:04}", 42); // => "0042" with leading zeros
32
//! ```
33
//!
34
//! From these, you can see that the first argument is a format string. It is
0 commit comments