Rollup merge of #40495 - llogiq:format-docs, r=steveklabnik

fix format grammar

This is just a trivial change to get the escaped squigglies into the grammar.

r? @steveklabnik
This commit is contained in:
Corey Farwell 2017-03-17 08:48:57 -04:00 committed by GitHub
commit 4fbd8849d9

View file

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