Skip to content

Commit 94be7fd

Browse files
smatsu-hlMylesBorins
smatsu-hl
authored andcommitted
doc: Add link for ECMAScript 2015
PR-URL: #17317 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Yosuke Furukawa <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]>
1 parent 0a40a11 commit 94be7fd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/api/buffer.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
> Stability: 2 - Stable
66
7-
Prior to the introduction of [`TypedArray`] in ECMAScript 2015 (ES6), the
7+
Prior to the introduction of [`TypedArray`] in [`ECMAScript 2015`] (ES6), the
88
JavaScript language had no mechanism for reading or manipulating streams
99
of binary data. The `Buffer` class was introduced as part of the Node.js
1010
API to make it possible to interact with octet streams in the context of things
@@ -211,7 +211,7 @@ changes:
211211
-->
212212

213213
`Buffer` instances are also [`Uint8Array`] instances. However, there are subtle
214-
incompatibilities with the TypedArray specification in ECMAScript 2015.
214+
incompatibilities with the TypedArray specification in [`ECMAScript 2015`].
215215
For example, while [`ArrayBuffer#slice()`] creates a copy of the slice, the
216216
implementation of [`Buffer#slice()`][`buf.slice()`] creates a view over the
217217
existing `Buffer` without copying, making [`Buffer#slice()`][`buf.slice()`] far
@@ -291,7 +291,7 @@ function:
291291

292292
## Buffers and ES6 iteration
293293

294-
`Buffer` instances can be iterated over using the ECMAScript 2015 (ES6) `for..of`
294+
`Buffer` instances can be iterated over using the [`ECMAScript 2015`] (ES6) `for..of`
295295
syntax.
296296

297297
Example:
@@ -2755,4 +2755,5 @@ This value may depend on the JS engine that is being used.
27552755
[RFC1345]: https://tools.ietf.org/html/rfc1345
27562756
[RFC4648, Section 5]: https://tools.ietf.org/html/rfc4648#section-5
27572757
[WHATWG Encoding Standard]: https://encoding.spec.whatwg.org/
2758+
[`ECMAScript 2015`]: https://www.ecma-international.org/ecma-262/6.0/index.html
27582759
[iterator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols

0 commit comments

Comments
 (0)