From 17154c48c7d8cab4b90d785a8dcea2415ffde588 Mon Sep 17 00:00:00 2001 From: Alex Zvorygin Date: Tue, 19 Sep 2017 13:22:03 -0400 Subject: [PATCH] probable typo fixed --- 1-js/06-advanced-functions/03-closure/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/06-advanced-functions/03-closure/article.md b/1-js/06-advanced-functions/03-closure/article.md index 015f3032..0c718aad 100644 --- a/1-js/06-advanced-functions/03-closure/article.md +++ b/1-js/06-advanced-functions/03-closure/article.md @@ -358,7 +358,7 @@ Here's what's going on in the `makeCounter` example step-by-step, follow it to m Please note how memory management works here. When `makeCounter()` call finished some time ago, its Lexical Environment was retained in memory, because there's a nested function with `[[Environment]]` referencing it. - Generally, a Lexical Environment object lives until there is a function which may use it. And when there are none, it is cleared. + Generally, a Lexical Environment object lives as long as there is a function which may use it. And when there are none, it is cleared. 6. The call to `counter()` not only returns the value of `count`, but also increases it. Note that the modification is done "in place". The value of `count` is modified exactly in the environment where it was found.