Skip to content

Commit

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

PR-URL: #38323
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
  • 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
Original file line number Diff line number Diff line change
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.