From cd4f4b4dfac4d96316058e12aafdc2737ed43f72 Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Thu, 5 Jan 2023 05:37:33 +0900 Subject: [PATCH] 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 Reviewed-By: Chengzhong Wu --- doc/contributing/using-symbols.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/contributing/using-symbols.md b/doc/contributing/using-symbols.md index dbdd3aff725..d901e88a85f 100644 --- a/doc/contributing/using-symbols.md +++ b/doc/contributing/using-symbols.md @@ -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 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 same V8 Isolate. On the first call to `Symbol.for(string)` a symbol is