0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-25 08:19:38 +01:00

doc: describe argument of Symbol.for

Symbol is described with argument, but argument of Symbol.for
is ommited. So describe argument of Symbol.for for consistency.

Refs: https://github.com/nodejs/node/blob/main/doc/contributing/using-symbols.md#symbolstring
PR-URL: https://github.com/nodejs/node/pull/46019
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
Deokjin Kim 2023-01-05 05:37:33 +09:00 committed by GitHub
parent 9b1ed04f2f
commit cd4f4b4dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ Some extremely popular modules in the ecosystem monkey patch some
internals, making it impossible for us to update and improve those internals, making it impossible for us to update and improve those
areas without causing issues for a significant amount of users. areas without causing issues for a significant amount of users.
## `Symbol.for` ## `Symbol.for(string)`
Symbols created with `Symbol.for(string)` are global and unique to the Symbols created with `Symbol.for(string)` are global and unique to the
same V8 Isolate. On the first call to `Symbol.for(string)` a symbol is same V8 Isolate. On the first call to `Symbol.for(string)` a symbol is