Skip to content

Commit 3eab248

Browse files
smatsu-hlgibfahn
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 6792998 commit 3eab248

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/api/buffer.md

Lines changed: 4 additions & 3 deletions
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
@@ -192,7 +192,7 @@ encoding may incorrectly decode the characters.
192192
## Buffers and TypedArray
193193

194194
`Buffer` instances are also [`Uint8Array`] instances. However, there are subtle
195-
incompatibilities with the TypedArray specification in ECMAScript 2015.
195+
incompatibilities with the TypedArray specification in [`ECMAScript 2015`].
196196
For example, while [`ArrayBuffer#slice()`] creates a copy of the slice, the
197197
implementation of [`Buffer#slice()`][`buf.slice()`] creates a view over the
198198
existing `Buffer` without copying, making [`Buffer#slice()`][`buf.slice()`] far
@@ -272,7 +272,7 @@ function:
272272

273273
## Buffers and ES6 iteration
274274

275-
`Buffer` instances can be iterated over using the ECMAScript 2015 (ES6) `for..of`
275+
`Buffer` instances can be iterated over using the [`ECMAScript 2015`] (ES6) `for..of`
276276
syntax.
277277

278278
Example:
@@ -2553,3 +2553,4 @@ console.log(buf);
25532553
[`Uint32Array`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array
25542554
[`Uint8Array`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array
25552555
[WHATWG spec]: https://encoding.spec.whatwg.org/
2556+
[`ECMAScript 2015`]: https://www.ecma-international.org/ecma-262/6.0/index.html

0 commit comments

Comments
 (0)