fix format grammar

This commit is contained in:
Andre Bogus 2017-03-13 23:56:27 +01:00
parent fd182c4010
commit adba642a38

View File

@ -306,7 +306,8 @@
//! `%`. The actual grammar for the formatting syntax is: //! `%`. The actual grammar for the formatting syntax is:
//! //!
//! ```text //! ```text
//! format_string := <text> [ format <text> ] * //! format_string := <text> [ maybe-format <text> ] *
//! maybe-format := '{' '{' | '}' '}' | <format>
//! format := '{' [ argument ] [ ':' format_spec ] '}' //! format := '{' [ argument ] [ ':' format_spec ] '}'
//! argument := integer | identifier //! argument := integer | identifier
//! //!