Skip to content

Commit 7f450bd

Browse files
authored
Rollup merge of rust-lang#59933 - sourcefrog:doc-fmt, r=shepmaster
Make clear that format padding doesn't work for Debug As mentioned in rust-lang#46006 (comment)
2 parents 1669f53 + 6225b31 commit 7f450bd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: src/liballoc/fmt.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,10 @@
343343
//! * `^` - the argument is center-aligned in `width` columns
344344
//! * `>` - the argument is right-aligned in `width` columns
345345
//!
346-
//! Note that alignment may not be implemented by some types. A good way
347-
//! to ensure padding is applied is to format your input, then use this
348-
//! resulting string to pad your output.
346+
//! Note that alignment may not be implemented by some types. In particular, it
347+
//! is not generally implemented for the `Debug` trait. A good way to ensure
348+
//! padding is applied is to format your input, then use this resulting string
349+
//! to pad your output.
349350
//!
350351
//! ## Sign/`#`/`0`
351352
//!

0 commit comments

Comments
 (0)