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 aduh95 committed Apr 23, 2021
1 parent 88bc864 commit 4f11b8b
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 @@ -205,7 +205,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 4f11b8b

Please sign in to comment.