auto merge of #9952 : huonw/rust/fmt-doc, r=alexcrichton

Cf. the concern raised in https://github.com/mozilla/rust/pull/9938#issuecomment-26648696.
This commit is contained in:
bors 2013-10-19 12:11:13 -07:00
commit 9d047cdead
1 changed files with 14 additions and 14 deletions

View File

@ -134,20 +134,20 @@ actually requesting that an argument ascribes to a particular trait. This allows
multiple actual types to be formatted via `{:d}` (like `i8` as well as `int`).
The current mapping of types to traits is:
* `?` => Poly
* `d` => Signed
* `i` => Signed
* `u` => Unsigned
* `b` => Bool
* `c` => Char
* `o` => Octal
* `x` => LowerHex
* `X` => UpperHex
* `s` => String
* `p` => Pointer
* `t` => Binary
* `f` => Float
* `` (nothing) => Default
* `?` `Poly`
* `d` `Signed`
* `i` `Signed`
* `u` `Unsigned`
* `b` `Bool`
* `c` `Char`
* `o` `Octal`
* `x` `LowerHex`
* `X` `UpperHex`
* `s` `String`
* `p` `Pointer`
* `t` `Binary`
* `f` `Float`
* *nothing* `Default`
What this means is that any type of argument which implements the
`std::fmt::Binary` trait can then be formatted with `{:t}`. Implementations are