Skip to content

Commit

Permalink
Editorial: swap order of steps in String.p.includes (#3300)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot authored and ljharb committed Mar 27, 2024
1 parent 96ceb67 commit 5d8f62d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -34605,8 +34605,8 @@ <h1>String.prototype.includes ( _searchString_ [ , _position_ ] )</h1>
1. Let _len_ be the length of _S_.
1. Let _start_ be the result of clamping _pos_ between 0 and _len_.
1. Let _index_ be StringIndexOf(_S_, _searchStr_, _start_).
1. If _index_ is not ~not-found~, return *true*.
1. Return *false*.
1. If _index_ is ~not-found~, return *false*.
1. Return *true*.
</emu-alg>
<emu-note>
<p>If _searchString_ appears as a <emu-not-ref>substring</emu-not-ref> of the result of converting this object to a String, at one or more indices that are greater than or equal to _position_, this function returns *true*; otherwise, it returns *false*. If _position_ is *undefined*, 0 is assumed, so as to search all of the String.</p>
Expand Down

0 comments on commit 5d8f62d

Please sign in to comment.