Skip to content

Commit 9461ef8

Browse files
Trotttargos
authored andcommitted
doc: remove "note that" from using-symbols.md
Refs: nodejs/remark-preset-lint-node#16 PR-URL: #28329 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent ffba80b commit 9461ef8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

doc/guides/using-symbols.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbo
1414
## `Symbol(string)`
1515

1616
Symbols created via `Symbol(string)` are local to the caller function.
17-
Note that `Symbol('hello') !== Symbol('hello')`.
1817
For this reason, we often use them to simulate private fields, like so:
1918

2019
```js
@@ -31,8 +30,7 @@ class MyObject {
3130
module.exports.MyObject = MyObject;
3231
```
3332

34-
Note that Symbols are not _fully private_, as the data could be accessed
35-
anyway:
33+
Symbols are not fully private, as the data could be accessed anyway:
3634

3735
```js
3836
for (const s of Object.getOwnPropertySymbols(obj)) {

0 commit comments

Comments
 (0)