Skip to content

Commit

Permalink
zh-CN: fix the wrong variable name (#1864)
Browse files Browse the repository at this point in the history
Ref: #1862
  • Loading branch information
Maledong authored Oct 26, 2018
1 parent dcaff62 commit d636358
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions locale/zh-cn/docs/guides/dont-block-the-event-loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,17 +264,17 @@ for (var i = 0; i < len; i++) {

before = process.hrtime();
res = JSON.stringify(obj);
took = process.hrtime(n);
took = process.hrtime(before);
console.log('JSON.stringify took ' + took);

before = process.hrtime();
res = str.indexOf('nomatch');
took = process.hrtime(n);
took = process.hrtime(before);
console.log('Pure indexof took ' + took);

before = process.hrtime();
res = JSON.parse(str);
took = process.hrtime(n);
took = process.hrtime(before);
console.log('JSON.parse took ' + took);
```

Expand Down

0 comments on commit d636358

Please sign in to comment.