Skip to content

Commit 34956a3

Browse files
Update toArray.md
1 parent 1dc8241 commit 34956a3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/reference/buffer/toArray.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
## toArray
2-
Read the buffer's content as an array in specificed format and with a value.
2+
Read the buffer's content as an array in specificed format and every offset has a value.
33

44
## Returns
5-
an array of bytes in specific format and value.
5+
an array of bytes in specific format with each offset having a value.
66

77
## Example
88
Get a buffer that has 20 bytes and value.
99
``` ts
1010
const buf = Buffer.create(20);
11-
buf.toArray(); // 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
11+
buf.toArray(); // 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
1212
```

0 commit comments

Comments
 (0)