about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-04-02 12:47:19 +0000
committerbors <bors@rust-lang.org>2015-04-02 12:47:19 +0000
commit9854143cba679834bc4ef932858cd5303f015a0e (patch)
tree0309becd435f3a5ad8aa55d89a6fcbcb02a2e2f2
parent3e8a773bc51cc276fa53a07980566e816234a6bd (diff)
parent10816266d65ead7645a147ae1fde1b90aeda5d33 (diff)
downloadrust-9854143cba679834bc4ef932858cd5303f015a0e.tar.gz
rust-9854143cba679834bc4ef932858cd5303f015a0e.zip
Auto merge of #23868 - mbrubeck:doc-edit, r=Manishearth 1.0.0-beta
r? @steveklabnik
-rw-r--r--src/libcollections/fmt.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libcollections/fmt.rs b/src/libcollections/fmt.rs
index b106f4adbc7..46b1ad2138b 100644
--- a/src/libcollections/fmt.rs
+++ b/src/libcollections/fmt.rs
@@ -368,12 +368,12 @@
 //!         should always be printed.
 //! * '-' - Currently not used
 //! * '#' - This flag is indicates that the "alternate" form of printing should
-//!         be used. By default, this only applies to the integer formatting
-//!         traits and performs like:
-//!     * `x` - precedes the argument with a "0x"
-//!     * `X` - precedes the argument with a "0x"
-//!     * `t` - precedes the argument with a "0b"
-//!     * `o` - precedes the argument with a "0o"
+//!         be used.  For array slices, the alternate form omits the brackets.
+//!         For the integer formatting traits, the alternate forms are:
+//!     * `#x` - precedes the argument with a "0x"
+//!     * `#X` - precedes the argument with a "0x"
+//!     * `#t` - precedes the argument with a "0b"
+//!     * `#o` - precedes the argument with a "0o"
 //! * '0' - This is used to indicate for integer formats that the padding should
 //!         both be done with a `0` character as well as be sign-aware. A format
 //!         like `{:08}` would yield `00000001` for the integer `1`, while the