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 <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Akhil Marsonya <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
  • Loading branch information
cola119 authored and danielleadams committed Jun 11, 2022
1 parent d9f428e commit 3581400
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 3581400

Please sign in to comment.