Skip to content

Commit 9d047cd

Browse files
committed
auto merge of #9952 : huonw/rust/fmt-doc, r=alexcrichton
Cf. the concern raised in #9938 (comment).
2 parents 310f7a5 + 759b20d commit 9d047cd

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/libstd/fmt/mod.rs

+14-14
Original file line numberDiff line numberDiff line change
@@ -134,20 +134,20 @@ actually requesting that an argument ascribes to a particular trait. This allows
134134
multiple actual types to be formatted via `{:d}` (like `i8` as well as `int`).
135135
The current mapping of types to traits is:
136136
137-
* `?` => Poly
138-
* `d` => Signed
139-
* `i` => Signed
140-
* `u` => Unsigned
141-
* `b` => Bool
142-
* `c` => Char
143-
* `o` => Octal
144-
* `x` => LowerHex
145-
* `X` => UpperHex
146-
* `s` => String
147-
* `p` => Pointer
148-
* `t` => Binary
149-
* `f` => Float
150-
* `` (nothing) => Default
137+
* `?` ⇒ `Poly`
138+
* `d` ⇒ `Signed`
139+
* `i` ⇒ `Signed`
140+
* `u` ⇒ `Unsigned`
141+
* `b` ⇒ `Bool`
142+
* `c` ⇒ `Char`
143+
* `o` ⇒ `Octal`
144+
* `x` ⇒ `LowerHex`
145+
* `X` ⇒ `UpperHex`
146+
* `s` ⇒ `String`
147+
* `p` ⇒ `Pointer`
148+
* `t` ⇒ `Binary`
149+
* `f` ⇒ `Float`
150+
* *nothing* ⇒ `Default`
151151
152152
What this means is that any type of argument which implements the
153153
`std::fmt::Binary` trait can then be formatted with `{:t}`. Implementations are

0 commit comments

Comments
 (0)