From 733e7eea5c459c67173e369c1deac3bcde8f03ef Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Tue, 19 May 2015 19:21:52 +0700 Subject: [PATCH] fmt.rs: add note about lack of padding support for some types --- src/libcollections/fmt.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libcollections/fmt.rs b/src/libcollections/fmt.rs index 80fa6d397c8..cb023bcb7a5 100644 --- a/src/libcollections/fmt.rs +++ b/src/libcollections/fmt.rs @@ -353,6 +353,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. +//! //! ## Sign/#/0 //! //! These can all be interpreted as flags for a particular formatter.