Skip to content

Commit

Permalink
doc: make clear the result of comparison between Symbol.for
Browse files Browse the repository at this point in the history
PR-URL: #43309
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
cola119 authored Jun 6, 2022
1 parent 797e41c commit 18a0ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/contributing/using-symbols.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ for different reasons.

```js
const s = Symbol.for('hello');
console.log(s === Symbol.for('hello'));
console.log(s === Symbol.for('hello')); // true
```

In the Node.js runtime we prefix all our global symbols with `nodejs.`,
Expand Down

0 comments on commit 18a0ead

Please sign in to comment.