Skip to content

Fix documentation of bounds on argument by for BitArray::shift_end and shift_start#251

Open
albertsgarde wants to merge 1 commit intoferrilab:mainfrom
albertsgarde:fix-bitarray-shift-end-documentation
Open

Fix documentation of bounds on argument by for BitArray::shift_end and shift_start#251
albertsgarde wants to merge 1 commit intoferrilab:mainfrom
albertsgarde:fix-bitarray-shift-end-documentation

Conversation

@albertsgarde
Copy link

Fixes #250

I changed the assert message, but it might make more sense to change the assertion itself to by < len instead of by <= len, since we only run the assertion if by is not equal to len.

I am pretty certain the documentation change is correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BitSlice::shift_start and BitSlice::shift_end argument bounds incorrectly documented

1 participant