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 <luigipinca@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
theoludwig authored and targos committed Jun 5, 2021
1 parent 0388603 commit 1469e64
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 1469e64

Please sign in to comment.