Skip to content

Commit 558559b

Browse files
authored
Rollup merge of rust-lang#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
2 parents 58da973 + adba642 commit 558559b

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)