From e3cec3b488d6a766306fb2a8960f963b884968ac Mon Sep 17 00:00:00 2001 From: Douglas Mariano Valero <32845487+DouglasMV@users.noreply.github.com> Date: Sun, 1 Sep 2019 13:16:04 -0300 Subject: [PATCH] Fixed a typo --- 1-js/05-data-types/08-weakmap-weakset/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/05-data-types/08-weakmap-weakset/article.md b/1-js/05-data-types/08-weakmap-weakset/article.md index 01b0eb98..11ff9d5e 100644 --- a/1-js/05-data-types/08-weakmap-weakset/article.md +++ b/1-js/05-data-types/08-weakmap-weakset/article.md @@ -147,7 +147,7 @@ countUser(john); john = null; ``` -Now `john` object should be garbage collected, but remains is memory, as it's a key in `visitsCountMap`. +Now `john` object should be garbage collected, but remains in memory, as it's a key in `visitsCountMap`. We need to clean `visitsCountMap` when we remove users, otherwise it will grow in memory indefinitely. Such cleaning can become a tedious task in complex architectures.