Skip to content

Commit c099bda

Browse files
committed
String
1 parent 9636f6f commit c099bda

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 char.
330+
<int> = ord(<str>) # Converts Unicode char to int.
331331
```
332332
* **Also: `'lstrip()'`, `'rstrip()'`.**
333333
* **Also: `'lower()'`, `'upper()'`, `'capitalize()'` and `'title()'`.**

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,8 @@
435435
<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>
436436
&lt;str&gt; = &lt;str&gt;.translate(&lt;table&gt;) <span class="hljs-comment"># Use `str.maketrans(&lt;dict&gt;)` to generate table.</span>
437437
</code></pre>
438-
<pre><code class="python language-python hljs">&lt;str&gt; = chr(&lt;int&gt;) <span class="hljs-comment"># Converts int to unicode char.</span>
439-
&lt;int&gt; = ord(&lt;str&gt;) <span class="hljs-comment"># Converts unicode char to int.</span>
438+
<pre><code class="python language-python hljs">&lt;str&gt; = chr(&lt;int&gt;) <span class="hljs-comment"># Converts int to Unicode char.</span>
439+
&lt;int&gt; = ord(&lt;str&gt;) <span class="hljs-comment"># Converts Unicode char to int.</span>
440440
</code></pre>
441441
<ul>
442442
<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>.</strong></li>

0 commit comments

Comments
 (0)