Skip to content

Commit 4fbd884

Browse files
authored
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
2 parents dcf5f07 + adba642 commit 4fbd884

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcollections/fmt.rs

Lines changed: 2 additions & 1 deletion
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)