Skip to content

Commit 74caa86

Browse files
Typos
2 small fixes
1 parent 340ce43 commit 74caa86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/99-js-misc/01-proxy/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ So there's no such problem when proxying an array.
840840
841841
### Private fields
842842
843-
The similar thing happens with private class fields.
843+
A similar thing happens with private class fields.
844844
845845
For example, `getName()` method accesses the private `#name` property and breaks after proxying:
846846
@@ -963,7 +963,7 @@ revoke();
963963
alert(proxy.data); // Error
964964
```
965965

966-
A call to `revoke()` removes all internal references to the target object from the proxy, so they are no more connected. The target object can be garbage-collected after that.
966+
A call to `revoke()` removes all internal references to the target object from the proxy, so they are no longer connected. The target object can be garbage-collected after that.
967967

968968
We can also store `revoke` in a `WeakMap`, to be able to easily find it by a proxy object:
969969

0 commit comments

Comments
 (0)