Skip to content

Commit 0461538

Browse files
Merge pull request ryanmcdermott#262 from tylim88/master
fix wrong syntax
2 parents a6875f4 + bcb1526 commit 0461538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ they are fixed if they can be.
980980
```javascript
981981
// On old browsers, each iteration with uncached `list.length` would be costly
982982
// because of `list.length` recomputation. In modern browsers, this is optimized.
983-
for (let i = 0, len = list.length; i < len; i++) {
983+
for (let i = 0; len = list.length; i < len; i++) {
984984
// ...
985985
}
986986
```

0 commit comments

Comments
 (0)