Skip to content

Commit

Permalink
Make clear that format padding doesn't work for Debug
Browse files Browse the repository at this point in the history
As mentioned in
#46006 (comment)
  • Loading branch information
sourcefrog committed Apr 13, 2019
1 parent 99da733 commit 6225b31
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/liballoc/fmt.rs
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 6225b31

Please sign in to comment.