mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
doc: fix buffer api example code's token error
Buffer's Blob api example code has some token error PR-URL: https://github.com/nodejs/node/pull/40125 Reviewed-By: Qingyu Deng <i@ayase-lab.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
67812e8c65
commit
73a127ba7b
1 file changed
+2
-2
+2
-2
@@ -574,7 +574,7 @@ mc1.port2.postMessage(blob);
|
||||
mc2.port2.postMessage(blob);
|
||||
|
||||
// The Blob is still usable after posting.
|
||||
data.text().then(console.log);
|
||||
blob.text().then(console.log);
|
||||
```
|
||||
|
||||
```cjs
|
||||
@@ -601,7 +601,7 @@ mc1.port2.postMessage(blob);
|
||||
mc2.port2.postMessage(blob);
|
||||
|
||||
// The Blob is still usable after posting.
|
||||
data.text().then(console.log);
|
||||
blob.text().then(console.log);
|
||||
```
|
||||
|
||||
## Class: `Buffer`
|
||||
|
||||
Reference in new issue
Block a user