Clarified wording.

This commit is contained in:
Eric V. Smith 2016-11-19 12:16:38 -05:00
parent 4e860330f6
commit 7943dd4986
1 changed files with 2 additions and 1 deletions

View File

@ -190,7 +190,8 @@ braces ``'{{'`` or ``'}}'`` inside literal portions of an f-string are
replaced by the corresponding single brace. Doubled literal opening
braces do not signify the start of an expression. A single closing
curly brace ``'}'`` in the literal portion of a string is an error:
literal closing curly braces must be doubled ``'}}'``.
literal closing curly braces must be doubled ``'}}'`` in order to
represent a single closing brace.
The parts of the f-string outside of braces are literal
strings. These literal portions are then decoded. For non-raw