Skip to content

Commit 8b6a1bb

Browse files
committed
Add documentation to BitInt::set_bit
1 parent 152bf65 commit 8b6a1bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bigint.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3271,6 +3271,8 @@ impl BigInt {
32713271
}
32723272
}
32733273

3274+
/// Sets or clears the bit in the given position,
3275+
/// uses the two's complement for negative numbers
32743276
pub fn set_bit(&mut self, bit: u64, value: bool) {
32753277
match self.sign {
32763278
Sign::Plus => self.data.set_bit(bit, value),

0 commit comments

Comments
 (0)