From 4f11b8b8ae06bf42b483ec7da69ccf7930291056 Mon Sep 17 00:00:00 2001 From: divlo Date: Wed, 21 Apr 2021 03:13:09 +0200 Subject: [PATCH] doc: fix typo in buffer.md 'uint16arr' -> 'uint16array' PR-URL: https://github.com/nodejs/node/pull/38323 Reviewed-By: Luigi Pinca Reviewed-By: Darshan Sen --- doc/api/buffer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 6e601dbf470278..3c8dc975e4248b 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -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);