Skip to content

Commit

Permalink
Rollup merge of rust-lang#59933 - sourcefrog:doc-fmt, r=shepmaster
Browse files Browse the repository at this point in the history
Make clear that format padding doesn't work for Debug

As mentioned in
rust-lang#46006 (comment)
  • Loading branch information
Centril authored Apr 19, 2019
2 parents e928e94 + 6225b31 commit f1a0b58
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/liballoc/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,10 @@
//! * `^` - the argument is center-aligned in `width` columns
//! * `>` - the argument is right-aligned in `width` columns
//!
//! Note that alignment may not be implemented by some types. A good way
//! to ensure padding is applied is to format your input, then use this
//! resulting string to pad your output.
//! Note that alignment may not be implemented by some types. In particular, it
//! is not generally implemented for the `Debug` trait. A good way to ensure
//! padding is applied is to format your input, then use this resulting string
//! to pad your output.
//!
//! ## Sign/`#`/`0`
//!
Expand Down

0 comments on commit f1a0b58

Please sign in to comment.