Skip to content

Commit a3445c0

Browse files
Update bufferHash.md
1 parent 498e968 commit a3445c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/bufferHash.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ a [number](https://arcade.makecode.com/types/number) of k-bit non-cryptographic
1616
## Example
1717
Let us calculate the buffer's hash when the bits as 2 when the buffer's length is 30.
1818
``` ts
19-
const buf = Buffer.create(0);
19+
const buf = Buffer.create(30);
2020
let hashValue = 0;
2121
if (buffer.length == 30) {
2222
hashValue = buffer.hash(2);

0 commit comments

Comments
 (0)