Skip to content

Commit b8c4b78

Browse files
authored
Rollup merge of #115487 - ModProg:patch-1, r=dtolnay
Improve documentation on when signes are printed by default I found the original formulation a bit irritating, but not sure if I really improved it.
2 parents edfe8b4 + f479538 commit b8c4b78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/alloc/src/fmt.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@
177177
//! These are all flags altering the behavior of the formatter.
178178
//!
179179
//! * `+` - This is intended for numeric types and indicates that the sign
180-
//! should always be printed. Positive signs are never printed by
181-
//! default, and the negative sign is only printed by default for signed values.
180+
//! should always be printed. By default only the negative sign of signed values
181+
//! is printed, and the sign of positive or unsigned values is omitted.
182182
//! This flag indicates that the correct sign (`+` or `-`) should always be printed.
183183
//! * `-` - Currently not used
184184
//! * `#` - This flag indicates that the "alternate" form of printing should

0 commit comments

Comments
 (0)