Skip to content

Commit

Permalink
doc: fix buffer api example code's token error
Browse files Browse the repository at this point in the history
Buffer's Blob api example code has some token error

PR-URL: #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>
  • Loading branch information
gitwillsky authored and targos committed Oct 4, 2021
1 parent 67812e8 commit 73a127b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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`
Expand Down

0 comments on commit 73a127b

Please sign in to comment.