Skip to content

Commit

Permalink
Editorial: lastIndexOf: fix typo from tc39#2536 (tc39#2537)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 29, 2021
1 parent 59b7485 commit 8e65afd
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 @@ -33431,7 +33431,7 @@ <h1>String.prototype.lastIndexOf ( _searchString_ [ , _position_ ] )</h1>
1. If _searchStr_ is the empty String, return 𝔽(_start_).
1. Let _searchLen_ be the length of _searchStr_.
1. For each non-negative integer _i_ starting with _start_ such that _i_ &le; _len_ - _searchLen_, in descending order, do
1. Let _candidate_ be the substring of _string_ from _i_ to _i_ + _searchLen_.
1. Let _candidate_ be the substring of _S_ from _i_ to _i_ + _searchLen_.
1. If _candidate_ is the same sequence of code units as _searchStr_, return 𝔽(_i_).
1. Return *-1*<sub>𝔽</sub>.
</emu-alg>
Expand Down

0 comments on commit 8e65afd

Please sign in to comment.