Skip to content

Commit b38cf49

Browse files
Trotttargos
authored andcommitted
doc: make RFC references consistent
Use "RFC 1234" instead of "rfc1234", "RFC1234" or similar variants. PR-URL: #26727 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
1 parent 2d2b6a8 commit b38cf49

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

doc/api/buffer.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@ The character encodings currently supported by Node.js include:
178178

179179
* `'base64'` - Base64 encoding. When creating a `Buffer` from a string,
180180
this encoding will also correctly accept "URL and Filename Safe Alphabet" as
181-
specified in [RFC4648, Section 5].
181+
specified in [RFC 4648, Section 5].
182182

183183
* `'latin1'` - A way of encoding the `Buffer` into a one-byte encoded string
184-
(as defined by the IANA in [RFC1345],
184+
(as defined by the IANA in [RFC 1345],
185185
page 63, to be the Latin-1 supplement block and C0/C1 control codes).
186186

187187
* `'binary'` - Alias for `'latin1'`.
@@ -2644,8 +2644,8 @@ in UTF-16 code units.
26442644

26452645
This value may depend on the JS engine that is being used.
26462646

2647-
[RFC1345]: https://tools.ietf.org/html/rfc1345
2648-
[RFC4648, Section 5]: https://tools.ietf.org/html/rfc4648#section-5
2647+
[RFC 1345]: https://tools.ietf.org/html/rfc1345
2648+
[RFC 4648, Section 5]: https://tools.ietf.org/html/rfc4648#section-5
26492649
[WHATWG Encoding Standard]: https://encoding.spec.whatwg.org/
26502650
[`ArrayBuffer#slice()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/slice
26512651
[`ArrayBuffer`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer

doc/api/dns.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ added: v0.11.3
112112

113113
* Returns: {string[]}
114114

115-
Returns an array of IP address strings, formatted according to [rfc5952][],
115+
Returns an array of IP address strings, formatted according to [RFC 5952][],
116116
that are currently configured for DNS resolution. A string will include a port
117117
section if a custom port is used.
118118

@@ -555,10 +555,10 @@ one of the [DNS error codes][].
555555
<!-- YAML
556556
added: v0.11.3
557557
-->
558-
* `servers` {string[]} array of [rfc5952][] formatted addresses
558+
* `servers` {string[]} array of [RFC 5952][] formatted addresses
559559

560560
Sets the IP address and port of servers to be used when performing DNS
561-
resolution. The `servers` argument is an array of [rfc5952][] formatted
561+
resolution. The `servers` argument is an array of [RFC 5952][] formatted
562562
addresses. If the port is the IANA default DNS port (53) it can be omitted.
563563

564564
```js
@@ -647,7 +647,7 @@ added: v10.6.0
647647

648648
* Returns: {string[]}
649649

650-
Returns an array of IP address strings, formatted according to [rfc5952][],
650+
Returns an array of IP address strings, formatted according to [RFC 5952][],
651651
that are currently configured for DNS resolution. A string will include a port
652652
section if a custom port is used.
653653

@@ -1008,10 +1008,10 @@ is one of the [DNS error codes](#dns_error_codes).
10081008
<!-- YAML
10091009
added: v10.6.0
10101010
-->
1011-
* `servers` {string[]} array of [rfc5952][] formatted addresses
1011+
* `servers` {string[]} array of [RFC 5952][] formatted addresses
10121012

10131013
Sets the IP address and port of servers to be used when performing DNS
1014-
resolution. The `servers` argument is an array of [rfc5952][] formatted
1014+
resolution. The `servers` argument is an array of [RFC 5952][] formatted
10151015
addresses. If the port is the IANA default DNS port (53) it can be omitted.
10161016

10171017
```js
@@ -1147,5 +1147,5 @@ uses. For instance, _they do not use the configuration from `/etc/hosts`_.
11471147
[DNS error codes]: #dns_error_codes
11481148
[Implementation considerations section]: #dns_implementation_considerations
11491149
[RFC 8482]: https://tools.ietf.org/html/rfc8482
1150-
[rfc5952]: https://tools.ietf.org/html/rfc5952#section-6
1150+
[RFC 5952]: https://tools.ietf.org/html/rfc5952#section-6
11511151
[supported `getaddrinfo` flags]: #dns_supported_getaddrinfo_flags

doc/api/http.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2082,7 +2082,7 @@ There are a few special headers that should be noted.
20822082

20832083
* Sending an 'Expect' header will immediately send the request headers.
20842084
Usually, when sending 'Expect: 100-continue', both a timeout and a listener
2085-
for the `'continue'` event should be set. See RFC2616 Section 8.2.3 for more
2085+
for the `'continue'` event should be set. See RFC 2616 Section 8.2.3 for more
20862086
information.
20872087

20882088
* Sending an Authorization header will override using the `auth` option

doc/api/http2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3223,7 +3223,7 @@ added: v8.4.0
32233223

32243224
* {string}
32253225

3226-
Status message is not supported by HTTP/2 (RFC7540 8.1.2.4). It returns
3226+
Status message is not supported by HTTP/2 (RFC 7540 8.1.2.4). It returns
32273227
an empty string.
32283228

32293229
#### response.stream

0 commit comments

Comments
 (0)