diff --git a/README.md b/README.md index f0a520ae..e7c01dbf 100644 --- a/README.md +++ b/README.md @@ -980,7 +980,7 @@ they are fixed if they can be. ```javascript // On old browsers, each iteration with uncached `list.length` would be costly // because of `list.length` recomputation. In modern browsers, this is optimized. -for (let i = 0; len = list.length; i < len; i++) { +for (let i = 0, len = list.length; i < len; i++) { // ... } ```