Skip to content

Commit

Permalink
Correct comment (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
ensi321 authored Apr 26, 2024
1 parent b3fa4f1 commit d7191b8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/ssz/src/value/bitArray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,10 @@ export class BitArray {
}

/**
* Return the position of a single bit set. If no bit set or more than 1 bit set, throws.
* Return the position of a single bit set.
* @returns
* - number: if there's a single bit set, the number it the single bit set position
* - null: if ERROR_MORE_THAN_ONE_BIT_SET or ERROR_NO_BIT_SET
* @throws
* - ERROR_MORE_THAN_ONE_BIT_SET
* - ERROR_NO_BIT_SET
*/
getSingleTrueBit(): number | null {
let index: number | null = null;
Expand Down

0 comments on commit d7191b8

Please sign in to comment.