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>
This commit is contained in:
Rich Trott 2019-06-20 13:28:52 -06:00
parent 68cfa56d0c
commit ebf5822f12

View File

@ -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)) {