chore(docs): fix wrongly written at binary-data.md (#12452)

This commit is contained in:
Imgodmaoyouknow
2024-07-09 16:44:47 +08:00
committed by GitHub
parent a36a01e235
commit 21ff566d69

View File

@@ -395,7 +395,7 @@ Bun implements `Buffer`, a Node.js API for working with binary data that pre-dat
```ts
const buf = Buffer.from("hello world");
// => Buffer(16) [ 116, 104, 105, 115, 32, 105, 115, 32, 97, 32, 115, 116, 114, 105, 110, 103 ]
// => Buffer(11) [ 104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100 ]
buf.length; // => 11
buf[0]; // => 104, ascii for 'h'