File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -581,7 +581,7 @@ contained by the `Blob` is copied only when the `arrayBuffer()` or `text()`
581581methods are called.
582582
583583``` mjs
584- import { Blob , Buffer } from ' node:buffer' ;
584+ import { Blob } from ' node:buffer' ;
585585import { setTimeout as delay } from ' node:timers/promises' ;
586586
587587const blob = new Blob ([' hello there' ]);
@@ -608,7 +608,7 @@ blob.text().then(console.log);
608608```
609609
610610``` cjs
611- const { Blob , Buffer } = require (' node:buffer' );
611+ const { Blob } = require (' node:buffer' );
612612const { setTimeout: delay } = require (' node:timers/promises' );
613613
614614const blob = new Blob ([' hello there' ]);
@@ -1073,7 +1073,7 @@ Copies the underlying memory of `view` into a new `Buffer`.
10731073
10741074``` js
10751075const u16 = new Uint16Array ([0 , 0xffff ]);
1076- const buf = Buffer .copyBytesFrom (u16, 0 , 1 );
1076+ const buf = Buffer .copyBytesFrom (u16, 1 , 1 );
10771077u16[1 ] = 0 ;
10781078console .log (buf .length ); // 2
10791079console .log (buf[0 ]); // 255
You can’t perform that action at this time.
0 commit comments