summaryrefslogtreecommitdiff
path: root/doc/guides
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2019-06-20 13:28:52 -0600
committerRich Trott <rtrott@gmail.com>2019-06-23 07:07:18 -0700
commitebf5822f12318c446f0b541ce615449c4210b136 (patch)
tree7d79af9c4c9217695de9f68c281c4d506dc620fa /doc/guides
parent68cfa56d0ce98888a3d5cec949442ed485e63fd1 (diff)
downloadandroid-node-v8-ebf5822f12318c446f0b541ce615449c4210b136.tar.gz
android-node-v8-ebf5822f12318c446f0b541ce615449c4210b136.tar.bz2
android-node-v8-ebf5822f12318c446f0b541ce615449c4210b136.zip
doc: remove "note that" from using-symbols.md
Refs: https://github.com/nodejs/remark-preset-lint-node/pull/16 PR-URL: https://github.com/nodejs/node/pull/28329 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'doc/guides')
-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)) {