Skip to content

Commit ca17a69

Browse files
authored
Merge pull request #2231 from Dewke/dewke-minor-fix
Minor clarification on WeakMap and WeakSet
2 parents 0c760be + 567d911 commit ca17a69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

1-js/05-data-types/08-weakmap-weakset/article.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ let array = [ john ];
3030
john = null; // overwrite the reference
3131

3232
*!*
33-
// john is stored inside the array, so it won't be garbage-collected
33+
// the object previously referenced by john is stored inside the array
34+
// therefore it won't be garbage-collected
3435
// we can get it as array[0]
3536
*/!*
3637
```

0 commit comments

Comments
 (0)