Fix 2 typos. Thanks Johan Musaeus Bruun.

This commit is contained in:
Eric V. Smith 2015-09-12 06:48:29 -04:00
parent 31ed37e00e
commit c8910c0c71
1 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ For example, this code::
Might be be evaluated as::
'abc' + expr1.__format__(spec1) + repr(expr2).__format__(spec2) + 'def' + str(spec3).__format__('') + 'ghi'
'abc' + expr1.__format__(spec1) + repr(expr2).__format__(spec2) + 'def' + str(expr3).__format__('') + 'ghi'
Expression evaluation
---------------------
@ -372,7 +372,7 @@ yields the value::
While the exact method of this run time concatenation is unspecified,
the above code might evaluate to::
'ab' + x.__format__('') + '{c}' + 'str<' + y.__format__('^4') + 'de'
'ab' + x.__format__('') + '{c}' + 'str<' + y.__format__('^4') + '>de'
Error handling
--------------