Skip to content

Commit

Permalink
Add example with leading zeros
Browse files Browse the repository at this point in the history
  • Loading branch information
dns2utf8 committed Jun 24, 2016
1 parent dc9112f commit 6418cb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcollections/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
//! format!("{:?}", (3, 4)); // => "(3, 4)"
//! format!("{value}", value=4); // => "4"
//! format!("{} {}", 1, 2); // => "1 2"
//! format!("{:04}", 42); // => "0042" with leading zeros
//! ```
//!
//! From these, you can see that the first argument is a format string. It is
Expand Down

0 comments on commit 6418cb4

Please sign in to comment.