Skip to content

Commit 718b591

Browse files
committed
Rollup merge of #22925 - leonardinius:issue-22646-fmt, r=steveklabnik
Addresses #22646 Removes deprecated `{:08d}` format from the module documentation. `{:08}` should be used instead now.
2 parents 16efd0e + c04c963 commit 718b591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/fmt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@
364364
//! * `o` - precedes the argument with a "0o"
365365
//! * '0' - This is used to indicate for integer formats that the padding should
366366
//! both be done with a `0` character as well as be sign-aware. A format
367-
//! like `{:08d}` would yield `00000001` for the integer `1`, while the
367+
//! like `{:08}` would yield `00000001` for the integer `1`, while the
368368
//! same format would yield `-0000001` for the integer `-1`. Notice that
369369
//! the negative version has one fewer zero than the positive version.
370370
//!

0 commit comments

Comments
 (0)