Skip to content

Commit c04c963

Browse files
author
Leonids Maslovs
committed
Addresses #22646
Removes deprecated `{:08d}` format from the module documentation. `{:08}` should be used instead now.
1 parent 0eb0ba3 commit c04c963

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)