diff --git a/README.md b/README.md index e4c0c22..74a3092 100644 --- a/README.md +++ b/README.md @@ -408,7 +408,7 @@ Format ``` ### Strings -**`'!r'` calls object's repr() method, instead of format(), to get a string.** +**`'!r'` calls object's repr() method, instead of str(), to get a string.** ```python {'abcde'!r:<10} # "'abcde' " {'abcde':.3} # 'abc' diff --git a/index.html b/index.html index 7bc3837..0932106 100644 --- a/index.html +++ b/index.html @@ -489,7 +489,7 @@ to_exclusive = <range>.stop {<el>:>0} # '<el>'
'!r'
calls object's repr() method, instead of format(), to get a string.
'!r'
calls object's repr() method, instead of str(), to get a string.
{'abcde'!r:<10} # "'abcde' "
{'abcde':.3} # 'abc'
{'abcde':10.3} # 'abc '