Skip to content

Commit

Permalink
Unrolled build for rust-lang#115487
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#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.
  • Loading branch information
rust-timer authored Sep 16, 2023
2 parents 341ef15 + f479538 commit 8157ead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/alloc/src/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@
//! These are all flags altering the behavior of the formatter.
//!
//! * `+` - This is intended for numeric types and indicates that the sign
//! should always be printed. Positive signs are never printed by
//! default, and the negative sign is only printed by default for signed values.
//! should always be printed. By default only the negative sign of signed values
//! is printed, and the sign of positive or unsigned values is omitted.
//! This flag indicates that the correct sign (`+` or `-`) should always be printed.
//! * `-` - Currently not used
//! * `#` - This flag indicates that the "alternate" form of printing should
Expand Down

0 comments on commit 8157ead

Please sign in to comment.