about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-04-19 06:03:10 +0200
committerGitHub <noreply@github.com>2019-04-19 06:03:10 +0200
commit7f450bd3ca9edd39b876293650d49dc17d200256 (patch)
treec14b940b9502ff2ad77b1ace9fc1512acdf953d9 /src/liballoc
parent1669f53dbbebd5bd8c831bf583bd90132c67ee9c (diff)
parent6225b312cf758d078dd37b0e404286aa1b1cbd5b (diff)
downloadrust-7f450bd3ca9edd39b876293650d49dc17d200256.tar.gz
rust-7f450bd3ca9edd39b876293650d49dc17d200256.zip
Rollup merge of #59933 - sourcefrog:doc-fmt, r=shepmaster
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`
 //!