Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correct comment on BitArray.getSingleTrueBit #369

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading