]> git.lizzy.rs Git - rust.git/commitdiff
fmt.rs: add note about lack of padding support for some types
authorParker Moore <parkrmoore@gmail.com>
Tue, 19 May 2015 12:21:52 +0000 (19:21 +0700)
committerParker Moore <parkrmoore@gmail.com>
Tue, 19 May 2015 12:21:52 +0000 (19:21 +0700)
src/libcollections/fmt.rs

index 80fa6d397c82911852f24658c2ae572cbc80cb6f..cb023bcb7a586b3e7be08f26f12007ace67050bd 100644 (file)
 //! * `^` - 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.
+//!
 //! ## Sign/#/0
 //!
 //! These can all be interpreted as flags for a particular formatter.