Skip to content

Commit 30d07cd

Browse files
committed
Numbers
1 parent 3544214 commit 30d07cd

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
@@ -412,7 +412,7 @@ Numbers
412412
<float> = float(<int/str/bool>)
413413
<complex> = complex(real=0, imag=0) # Or: <real> + <real>j
414414
```
415-
* **`'int()'` and `'float()'` raise ValueError on malformed string.**
415+
* **`'int(<str>)'` and `'float(<str>)'` raise ValueError on malformed strings.**
416416

417417
### Basic Functions
418418
```python

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ <h2 id="numbers"><a href="#numbers" name="numbers">#</a>Numbers</h2>
485485
&lt;complex&gt; = complex(real=<span class="hljs-number">0</span>, imag=<span class="hljs-number">0</span>) <span class="hljs-comment"># Or: &lt;real&gt; + &lt;real&gt;j</span>
486486
</code></pre>
487487
<ul>
488-
<li><strong><code class="python hljs"><span class="hljs-string">'int()'</span></code> and <code class="python hljs"><span class="hljs-string">'float()'</span></code> raise ValueError on malformed string.</strong></li>
488+
<li><strong><code class="python hljs"><span class="hljs-string">'int(&lt;str&gt;)'</span></code> and <code class="python hljs"><span class="hljs-string">'float(&lt;str&gt;)'</span></code> raise ValueError on malformed strings.</strong></li>
489489
</ul>
490490
<h3 id="basicfunctions">Basic Functions</h3>
491491
<pre><code class="python language-python hljs">&lt;num&gt; = pow(&lt;num&gt;, &lt;num&gt;) <span class="hljs-comment"># Or: &lt;num&gt; ** &lt;num&gt;</span>

0 commit comments

Comments
 (0)