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/dgram.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/dgram.md')
-rw-r--r-- | doc/api/dgram.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/dgram.md b/doc/api/dgram.md index 3cc2ea78297..462f71ed74c 100644 --- a/doc/api/dgram.md +++ b/doc/api/dgram.md @@ -802,4 +802,4 @@ and `udp6` sockets). The bound address and port can be retrieved using [`socket.bind()`]: #dgram_socket_bind_port_address_callback [IPv6 Zone Indices]: https://en.wikipedia.org/wiki/IPv6_address#Scoped_literal_IPv6_addresses [RFC 4007]: https://tools.ietf.org/html/rfc4007 -[byte length]: buffer.html#buffer_class_method_buffer_bytelength_string_encoding +[byte length]: buffer.html#buffer_static_method_buffer_bytelength_string_encoding |