Skip to content

Commit 2d96da8

Browse files
theoludwigtargos
authored andcommitted
doc: fix typo in buffer.md
'uint16arr' -> 'uint16array' PR-URL: #38323 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent f6e4dbb commit 2d96da8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/buffer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ console.log(uint32array);
193193

194194
```js
195195
const buf = Buffer.from('hello', 'utf16le');
196-
const uint16arr = new Uint16Array(
196+
const uint16array = new Uint16Array(
197197
buf.buffer,
198198
buf.byteOffset,
199199
buf.length / Uint16Array.BYTES_PER_ELEMENT);

0 commit comments

Comments
 (0)