From ebf5822f12318c446f0b541ce615449c4210b136 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 20 Jun 2019 13:28:52 -0600 Subject: doc: remove "note that" from using-symbols.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/nodejs/remark-preset-lint-node/pull/16 PR-URL: https://github.com/nodejs/node/pull/28329 Reviewed-By: Gus Caplan Reviewed-By: Trivikram Kamat Reviewed-By: Tobias Nießen Reviewed-By: Ruben Bridgewater --- doc/guides/using-symbols.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'doc/guides') diff --git a/doc/guides/using-symbols.md b/doc/guides/using-symbols.md index 1e79e1a4e4..b4bf9cd67f 100644 --- a/doc/guides/using-symbols.md +++ b/doc/guides/using-symbols.md @@ -14,7 +14,6 @@ https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbo ## `Symbol(string)` Symbols created via `Symbol(string)` are local to the caller function. -Note that `Symbol('hello') !== Symbol('hello')`. For this reason, we often use them to simulate private fields, like so: ```js @@ -31,8 +30,7 @@ class MyObject { module.exports.MyObject = MyObject; ``` -Note that Symbols are not _fully private_, as the data could be accessed -anyway: +Symbols are not fully private, as the data could be accessed anyway: ```js for (const s of Object.getOwnPropertySymbols(obj)) { -- cgit v1.2.3