diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-10-11 17:51:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-11 17:51:27 +0200 |
| commit | 30164c21fa0451e00b19bab22d15b9866edd97f1 (patch) | |
| tree | 2a41727dd5b53520061b7df50c5f027226a59862 /src | |
| parent | 5c29a914a922d2d40e185579c17890f52572bd4b (diff) | |
| parent | ee3de444e6c64083e4af84b701580d4084ac865c (diff) | |
| download | rust-30164c21fa0451e00b19bab22d15b9866edd97f1.tar.gz rust-30164c21fa0451e00b19bab22d15b9866edd97f1.zip | |
Rollup merge of #37081 - p512:master, r=sfackler
Changed 0 into '0' Right now `0` is an undefined production rule. [Documentation following the grammar specification](https://doc.rust-lang.org/nightly/std/fmt/#sign0) strongly suggests `'0'` is meant as it is used as a character literal. r? @steveklabnik
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcollections/fmt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/fmt.rs b/src/libcollections/fmt.rs index b095b8131b6..883417e9f4e 100644 --- a/src/libcollections/fmt.rs +++ b/src/libcollections/fmt.rs @@ -327,7 +327,7 @@ //! format := '{' [ argument ] [ ':' format_spec ] '}' //! argument := integer | identifier //! -//! format_spec := [[fill]align][sign]['#'][0][width]['.' precision][type] +//! format_spec := [[fill]align][sign]['#']['0'][width]['.' precision][type] //! fill := character //! align := '<' | '^' | '>' //! sign := '+' | '-' |
