Skip to content

Commit

Permalink
Editorial: Generalize the note about when StringIndexOf is guaranteed…
Browse files Browse the repository at this point in the history
… to return -1 (#2950)
  • Loading branch information
gibson042 authored and ljharb committed Nov 4, 2022
1 parent 5e1ed48 commit 8410f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ <h1>
<p>If _searchValue_ is the empty String and _fromIndex_ is less than or equal to the length of _string_, this algorithm returns _fromIndex_. The empty String is effectively found at every position within a string, including after the last code unit.</p>
</emu-note>
<emu-note>
<p>This algorithm always returns -1 if _fromIndex_ > the length of _string_.</p>
<p>This algorithm always returns -1 if _fromIndex_ + the length of _searchValue_ > the length of _string_.</p>
</emu-note>
</emu-clause>
</emu-clause>
Expand Down

0 comments on commit 8410f1b

Please sign in to comment.