Skip to content

Commit 27bae3a

Browse files
committed
String
1 parent 7249863 commit 27bae3a

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
@@ -315,7 +315,7 @@ String
315315
<bool> = <str>.startswith(<sub_str>) # Pass tuple of strings for multiple options.
316316
<bool> = <str>.endswith(<sub_str>) # Pass tuple of strings for multiple options.
317317
<int> = <str>.find(<sub_str>) # Returns start index of first match or -1.
318-
<int> = <str>.index(<sub_str>) # Same but raises ValueError.
318+
<int> = <str>.index(<sub_str>) # Same but raises ValueError if missing.
319319
```
320320

321321
```python

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@
429429
&lt;bool&gt; = &lt;str&gt;.startswith(&lt;sub_str&gt;) <span class="hljs-comment"># Pass tuple of strings for multiple options.</span>
430430
&lt;bool&gt; = &lt;str&gt;.endswith(&lt;sub_str&gt;) <span class="hljs-comment"># Pass tuple of strings for multiple options.</span>
431431
&lt;int&gt; = &lt;str&gt;.find(&lt;sub_str&gt;) <span class="hljs-comment"># Returns start index of first match or -1.</span>
432-
&lt;int&gt; = &lt;str&gt;.index(&lt;sub_str&gt;) <span class="hljs-comment"># Same but raises ValueError.</span>
432+
&lt;int&gt; = &lt;str&gt;.index(&lt;sub_str&gt;) <span class="hljs-comment"># Same but raises ValueError if missing.</span>
433433
</code></pre>
434434
<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>
435435
&lt;bool&gt; = &lt;str&gt;.isnumeric() <span class="hljs-comment"># True if str contains only numeric characters.</span>

0 commit comments

Comments
 (0)