From e27e454cec49bf80d386c3b2d7896b7e5b4a5840 Mon Sep 17 00:00:00 2001 From: Maledong Date: Mon, 5 Nov 2018 06:55:13 +0800 Subject: [PATCH] docs: Fix varible typos (#1887) Ref: https://github.com/nodejs/nodejs.org/pull/1885. --- locale/fa/docs/guides/dont-block-the-event-loop.md | 2 +- locale/zh-cn/docs/guides/dont-block-the-event-loop.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/locale/fa/docs/guides/dont-block-the-event-loop.md b/locale/fa/docs/guides/dont-block-the-event-loop.md index 9e3e2c79905e1..f4a21872b5b53 100644 --- a/locale/fa/docs/guides/dont-block-the-event-loop.md +++ b/locale/fa/docs/guides/dont-block-the-event-loop.md @@ -257,7 +257,7 @@ var niter = 20; var before, res, took; -for (var i = 0; i < len; i++) { +for (var i = 0; i < niter; i++) { obj = { obj1: obj, obj2: obj }; // Doubles in size each iter } diff --git a/locale/zh-cn/docs/guides/dont-block-the-event-loop.md b/locale/zh-cn/docs/guides/dont-block-the-event-loop.md index 6416eb443ec95..aef63ec7c16ee 100644 --- a/locale/zh-cn/docs/guides/dont-block-the-event-loop.md +++ b/locale/zh-cn/docs/guides/dont-block-the-event-loop.md @@ -258,7 +258,7 @@ var niter = 20; var before, res, took; -for (var i = 0; i < len; i++) { +for (var i = 0; i < niter; i++) { obj = { obj1: obj, obj2: obj }; // 每个循环里面将对象 size 加倍 }