Skip to content

Commit 30164c2

Browse files
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
2 parents 5c29a91 + ee3de44 commit 30164c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/fmt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327
//! format := '{' [ argument ] [ ':' format_spec ] '}'
328328
//! argument := integer | identifier
329329
//!
330-
//! format_spec := [[fill]align][sign]['#'][0][width]['.' precision][type]
330+
//! format_spec := [[fill]align][sign]['#']['0'][width]['.' precision][type]
331331
//! fill := character
332332
//! align := '<' | '^' | '>'
333333
//! sign := '+' | '-'

0 commit comments

Comments
 (0)