Skip to content

Commit db8b818

Browse files
committed
Format
1 parent 0df8f2e commit db8b818

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ Format
408408
```
409409

410410
### Strings
411-
**`'!r'` calls object's repr() method, instead of format(), to get a string.**
411+
**`'!r'` calls object's repr() method, instead of str(), to get a string.**
412412
```python
413413
{'abcde'!r:<10} # "'abcde' "
414414
{'abcde':.3} # 'abc'

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ <h3 id="generaloptions">General Options</h3>
489489
{&lt;el&gt;:&gt;<span class="hljs-number">0</span>} <span class="hljs-comment"># '&lt;el&gt;'</span>
490490
</code></pre>
491491
<h3 id="strings">Strings</h3>
492-
<p><strong><code class="python hljs"><span class="hljs-string">'!r'</span></code> calls object's repr() method, instead of format(), to get a string.</strong></p>
492+
<p><strong><code class="python hljs"><span class="hljs-string">'!r'</span></code> calls object's repr() method, instead of str(), to get a string.</strong></p>
493493
<pre><code class="python language-python hljs">{<span class="hljs-string">'abcde'</span>!r:&lt;<span class="hljs-number">10</span>} <span class="hljs-comment"># "'abcde' "</span>
494494
{<span class="hljs-string">'abcde'</span>:<span class="hljs-number">.3</span>} <span class="hljs-comment"># 'abc'</span>
495495
{<span class="hljs-string">'abcde'</span>:<span class="hljs-number">10.3</span>} <span class="hljs-comment"># 'abc '</span>

0 commit comments

Comments
 (0)