diff options
author | Rich Trott <rtrott@gmail.com> | 2020-08-07 08:19:11 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-08-09 17:02:28 +0300 |
commit | 6f12643142039bd099f8c021923ac4deea1ae725 (patch) | |
tree | e53a22ff9a09c19f13ea42b36ec4b9f6e2926586 /doc/api/async_hooks.md | |
parent | 8825eb4d734c78ccdaa06811a5b033e59f7fa978 (diff) |
doc: use _Static method_ instead of _Class Method_
Our docs describe static methods as Class Methods which seems
idiosyncratic for JavaScript. Align with MDN which calls them static
methods.
Refs: https://developer.mozilla.org/en-US/docs/MDN/Contribute/Structures/API_references/What_does_an_API_reference_need
JSON format for our docs will still use the key name `classMethods` for
this. I would like to change it to `staticMethods` but I don't know if
that will break things for consumers. So, leaving it alone. It's a
machine-consumable label more than a human-readable so I can live with
that.
PR-URL: https://github.com/nodejs/node/pull/34659
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc/api/async_hooks.md')
-rw-r--r-- | doc/api/async_hooks.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md index f64b3b4e693..1c8c733069e 100644 --- a/doc/api/async_hooks.md +++ b/doc/api/async_hooks.md @@ -729,7 +729,7 @@ class DBQuery extends AsyncResource { } ``` -#### Class Method: `AsyncResource.bind(fn[, type])` +#### Static method: `AsyncResource.bind(fn[, type])` <!-- YAML added: REPLACEME --> |