diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-10-19 23:07:18 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-10-19 23:37:50 +1100 |
| commit | 759b20da87b65d45b552adc75dd418e89b201261 (patch) | |
| tree | 848b1924de52cb214f44bbc043a044488942b211 /src/libstd | |
| parent | 404a4619dc132c53c6c5c9e023316c779275b223 (diff) | |
| download | rust-759b20da87b65d45b552adc75dd418e89b201261.tar.gz rust-759b20da87b65d45b552adc75dd418e89b201261.zip | |
std::fmt: fix markdown peculiarity, unicodify some arrows, ` some trait names.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/fmt/mod.rs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/libstd/fmt/mod.rs b/src/libstd/fmt/mod.rs index 20fc44169d0..3223ca9a731 100644 --- a/src/libstd/fmt/mod.rs +++ b/src/libstd/fmt/mod.rs @@ -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 |
