summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/guides/using-symbols.md4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/guides/using-symbols.md b/doc/guides/using-symbols.md
index 1e79e1a4e4..b4bf9cd67f 100644
--- a/doc/guides/using-symbols.md
+++ b/doc/guides/using-symbols.md
@@ -14,7 +14,6 @@ https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbo
## `Symbol(string)`
Symbols created via `Symbol(string)` are local to the caller function.
-Note that `Symbol('hello') !== Symbol('hello')`.
For this reason, we often use them to simulate private fields, like so:
```js
@@ -31,8 +30,7 @@ class MyObject {
module.exports.MyObject = MyObject;
```
-Note that Symbols are not _fully private_, as the data could be accessed
-anyway:
+Symbols are not fully private, as the data could be accessed anyway:
```js
for (const s of Object.getOwnPropertySymbols(obj)) {