Skip to content

Commit adba642

Browse files
committed
fix format grammar
1 parent fd182c4 commit adba642

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcollections/fmt.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@
306306
//! `%`. The actual grammar for the formatting syntax is:
307307
//!
308308
//! ```text
309-
//! format_string := <text> [ format <text> ] *
309+
//! format_string := <text> [ maybe-format <text> ] *
310+
//! maybe-format := '{' '{' | '}' '}' | <format>
310311
//! format := '{' [ argument ] [ ':' format_spec ] '}'
311312
//! argument := integer | identifier
312313
//!

0 commit comments

Comments
 (0)