Skip to content

Commit 17154c4

Browse files
authored
probable typo fixed
1 parent a8455f9 commit 17154c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/06-advanced-functions/03-closure/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ Here's what's going on in the `makeCounter` example step-by-step, follow it to m
358358

359359
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.
360360

361-
Generally, a Lexical Environment object lives until there is a function which may use it. And when there are none, it is cleared.
361+
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.
362362

363363
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.
364364

0 commit comments

Comments
 (0)