Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
close #51
  • Loading branch information
Kikobeats authored Jul 18, 2017
1 parent e334007 commit 476e850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/v8-tips/inline-initialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ An immediate solution would be:

```js
var array = []
for (var i = 0; i < 10; i++) array[0] |= i // Oh no!
for (var i = 0; i < 10; i++) array[i] |= 0 // Oh no!
```

but knowing how **hidden classes** act, a better solution in terms of performance would be:
Expand Down

0 comments on commit 476e850

Please sign in to comment.