Skip to content

Commit e6fb59f

Browse files
committed
String
1 parent 47b4c77 commit e6fb59f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ String
326326
```
327327

328328
```python
329-
<str> = chr(<int>) # Converts int to Unicode char.
330-
<int> = ord(<str>) # Converts Unicode char to int.
329+
<str> = chr(<int>) # Converts int to Unicode character.
330+
<int> = ord(<str>) # Converts Unicode character to int.
331331
```
332332
* **Also: `'lstrip()'`, `'rstrip()'` and `'rsplit()'`.**
333333
* **Also: `'lower()'`, `'upper()'`, `'capitalize()'` and `'title()'`.**

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@
461461
<pre><code class="python language-python hljs">&lt;str&gt; = &lt;str&gt;.replace(old, new [, count]) <span class="hljs-comment"># Replaces 'old' with 'new' at most 'count' times.</span>
462462
&lt;str&gt; = &lt;str&gt;.translate(&lt;table&gt;) <span class="hljs-comment"># Use `str.maketrans(&lt;dict&gt;)` to generate table.</span>
463463
</code></pre>
464-
<pre><code class="python language-python hljs">&lt;str&gt; = chr(&lt;int&gt;) <span class="hljs-comment"># Converts int to Unicode char.</span>
465-
&lt;int&gt; = ord(&lt;str&gt;) <span class="hljs-comment"># Converts Unicode char to int.</span>
464+
<pre><code class="python language-python hljs">&lt;str&gt; = chr(&lt;int&gt;) <span class="hljs-comment"># Converts int to Unicode character.</span>
465+
&lt;int&gt; = ord(&lt;str&gt;) <span class="hljs-comment"># Converts Unicode character to int.</span>
466466
</code></pre>
467467
<ul>
468468
<li><strong>Also: <code class="python hljs"><span class="hljs-string">'lstrip()'</span></code>, <code class="python hljs"><span class="hljs-string">'rstrip()'</span></code> and <code class="python hljs"><span class="hljs-string">'rsplit()'</span></code>.</strong></li>

0 commit comments

Comments
 (0)