Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: fix buffer api example code's token error
Buffer's Blob api example code has some token error
  • Loading branch information
gitwillsky authored Sep 15, 2021
commit c28d692ef3d6c19b5b71f8c56c24cdb65121c6ba
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