File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 366
366
//! These can all be interpreted as flags for a particular formatter.
367
367
//!
368
368
//! * `+` - This is intended for numeric types and indicates that the sign
369
- //! should always be printed. Positive signs are never printed by
370
- //! default, and the negative sign is only printed by default for the
371
- //! `Signed` trait. This flag indicates that the correct sign (`+` or `-`)
372
- //! should always be printed.
373
- //! * `-` - Currently not used
369
+ //! (`+` or `-`) should always be printed. Positive signs are never
370
+ //! printed by default. This behavior is controlled by the
371
+ //! [`pad_integral`][pad_integral] method.
372
+ //! * `-` - Currently not used.
374
373
//! * `#` - This flag is indicates that the "alternate" form of printing should
375
374
//! be used. The alternate forms are:
376
375
//! * `#?` - pretty-print the `Debug` formatting
384
383
//! same format would yield `-0000001` for the integer `-1`. Notice that
385
384
//! the negative version has one fewer zero than the positive version.
386
385
//!
386
+ //! [pad_integral]: struct.Formatter.html#method.pad_integral
387
+ //!
387
388
//! ## Width
388
389
//!
389
390
//! This is a parameter for the "minimum width" that the format should take up.
You can’t perform that action at this time.
0 commit comments