Skip to content

Commit d92c27b

Browse files
committed
Fixes for chunk utility documentation
1 parent 1f2a613 commit d92c27b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util/chunk.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ export const MAX_CHUNK_SIZE = 65536
22

33
/**
44
* Chunks given `value` into evenly sized pieces (Same as `MAX_CHUNK_SIZE` bytes per each).
5-
* Returns `Generator<Uint8Array>` allowing to iterate over these chunks.
5+
* Returns `Generator<Uint8Array, void>` allowing to iterate over these chunks.
66
*
7-
* If value is less then `MAX_CHUNK_SIZE`, it will be returned as-is.
7+
* If the `value` <= `MAX_CHUNK_SIZE`, it will be returned as-is.
88
*
9-
* If the last chunk is less than `MAX_CHUNK_SIZE`, then returned value will be the size that chunk.
9+
* If the last chunk's size is less than `MAX_CHUNK_SIZE`, then returned value will be the size that chunk.
1010
*
1111
* @param value A value to chunk into evenly sized pieces
1212
*

0 commit comments

Comments
 (0)