Skip to content

Commit

Permalink
better arg name
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jan 26, 2024
1 parent bba328d commit 185c773
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions yarn-project/foundation/src/serialize/buffer_reader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ export class BufferReader {
}

/**
* Reads `size` 32-bit unsigned integers from the buffer at the current index position.
* @param size - The number of 32-bit unsigned integers to read.
* Reads `count` 32-bit unsigned integers from the buffer at the current index position.
* @param count - The number of 32-bit unsigned integers to read.
* @returns An array of 32-bit unsigned integers.
*/
public readNumbers<N extends number>(size: N): Tuple<number, N> {
const result = Array.from({ length: size }, () => this.readNumber());
public readNumbers<N extends number>(count: N): Tuple<number, N> {
const result = Array.from({ length: count }, () => this.readNumber());
return result as Tuple<number, N>;
}

Expand Down

0 comments on commit 185c773

Please sign in to comment.