doc: fix typo in Buffer API
PR-URL: https://github.com/nodejs/node/pull/25544 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
parent
f2e3a4ed8e
commit
74562356db
@ -221,7 +221,7 @@ elements, and not as a byte array of the target type. That is,
|
|||||||
`[0x1020304]` or `[0x4030201]`.
|
`[0x1020304]` or `[0x4030201]`.
|
||||||
|
|
||||||
It is possible to create a new `Buffer` that shares the same allocated memory as
|
It is possible to create a new `Buffer` that shares the same allocated memory as
|
||||||
a [`TypedArray`] instance by using the `TypeArray` object's `.buffer` property.
|
a [`TypedArray`] instance by using the `TypedArray` object's `.buffer` property.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const arr = new Uint16Array(2);
|
const arr = new Uint16Array(2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user