Improve documentation on when signes are printed by default

This commit is contained in:
Roland Fredenhagen 2023-09-03 00:13:44 +02:00 committed by GitHub
parent 9f5fc1bd44
commit f4795382ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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