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/deprecations.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/deprecations.md')
-rw-r--r-- | doc/api/deprecations.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index fe7eb21c3cd..165b51e6f47 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2778,10 +2778,10 @@ Type: Documentation-only [`--pending-deprecation`]: cli.html#cli_pending_deprecation [`--throw-deprecation`]: cli.html#cli_throw_deprecation -[`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size -[`Buffer.from(array)`]: buffer.html#buffer_class_method_buffer_from_array -[`Buffer.from(buffer)`]: buffer.html#buffer_class_method_buffer_from_buffer -[`Buffer.isBuffer()`]: buffer.html#buffer_class_method_buffer_isbuffer_obj +[`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_static_method_buffer_allocunsafeslow_size +[`Buffer.from(array)`]: buffer.html#buffer_static_method_buffer_from_array +[`Buffer.from(buffer)`]: buffer.html#buffer_static_method_buffer_from_buffer +[`Buffer.isBuffer()`]: buffer.html#buffer_static_method_buffer_isbuffer_obj [`Cipher`]: crypto.html#crypto_class_cipher [`Decipher`]: crypto.html#crypto_class_decipher [`EventEmitter.listenerCount(emitter, eventName)`]: events.html#events_eventemitter_listenercount_emitter_eventname @@ -2892,8 +2892,8 @@ Type: Documentation-only [NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf [RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3 [WHATWG URL API]: url.html#url_the_whatwg_url_api -[alloc]: buffer.html#buffer_class_method_buffer_alloc_size_fill_encoding -[alloc_unsafe_size]: buffer.html#buffer_class_method_buffer_allocunsafe_size -[from_arraybuffer]: buffer.html#buffer_class_method_buffer_from_arraybuffer_byteoffset_length -[from_string_encoding]: buffer.html#buffer_class_method_buffer_from_string_encoding +[alloc]: buffer.html#buffer_static_method_buffer_alloc_size_fill_encoding +[alloc_unsafe_size]: buffer.html#buffer_static_method_buffer_allocunsafe_size +[from_arraybuffer]: buffer.html#buffer_static_method_buffer_from_arraybuffer_byteoffset_length +[from_string_encoding]: buffer.html#buffer_static_method_buffer_from_string_encoding [legacy `urlObject`]: url.html#url_legacy_urlobject |