Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
doc: fix typo in buffer.md
'uint16arr' -> 'uint16array'

PR-URL: #38323
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
theoludwig authored and targos committed Jun 11, 2021
1 parent f6e4dbb commit 2d96da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/buffer.md
Expand Up @@ -193,7 +193,7 @@ console.log(uint32array);

```js
const buf = Buffer.from('hello', 'utf16le');
const uint16arr = new Uint16Array(
const uint16array = new Uint16Array(
buf.buffer,
buf.byteOffset,
buf.length / Uint16Array.BYTES_PER_ELEMENT);
Expand Down

0 comments on commit 2d96da8

Please sign in to comment.