Skip to content

Commit f5485e5

Browse files
authored
docs(alloc::fmt): Make type optional, instead of matching the empty string
1 parent e9182f1 commit f5485e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/alloc/src/fmt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,13 +348,13 @@
348348
//! format := '{' [ argument ] [ ':' format_spec ] [ ws ] * '}'
349349
//! argument := integer | identifier
350350
//!
351-
//! format_spec := [[fill]align][sign]['#']['0'][width]['.' precision]type
351+
//! format_spec := [[fill]align][sign]['#']['0'][width]['.' precision][type]
352352
//! fill := character
353353
//! align := '<' | '^' | '>'
354354
//! sign := '+' | '-'
355355
//! width := count
356356
//! precision := count | '*'
357-
//! type := '' | '?' | 'x?' | 'X?' | identifier
357+
//! type := '?' | 'x?' | 'X?' | identifier
358358
//! count := parameter | integer
359359
//! parameter := argument '$'
360360
//! ```

0 commit comments

Comments
 (0)