about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorMartin Pool <mbp@google.com>2019-04-13 15:39:49 +1000
committerMartin Pool <mbp@google.com>2019-04-13 15:39:49 +1000
commit6225b312cf758d078dd37b0e404286aa1b1cbd5b (patch)
tree2db6845bb8e0a8ea38fc3e24cb01e464afcc4132 /src/liballoc
parent99da733f7f38ce8fe68453e859b7ac96bf7caa0f (diff)
downloadrust-6225b312cf758d078dd37b0e404286aa1b1cbd5b.tar.gz
rust-6225b312cf758d078dd37b0e404286aa1b1cbd5b.zip
Make clear that format padding doesn't work for Debug
As mentioned in
https://github.com/rust-lang/rust/issues/46006#issuecomment-345260633
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/fmt.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/liballoc/fmt.rs b/src/liballoc/fmt.rs
index d2ba9b00191..68cbc366d7b 100644
--- a/src/liballoc/fmt.rs
+++ b/src/liballoc/fmt.rs
@@ -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`
 //!