Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Update doc for Bitmap set_bit (#802)
Browse files Browse the repository at this point in the history
  • Loading branch information
yjshen authored Feb 4, 2022
1 parent e577c9f commit b46a636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bitmap/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn set(byte: u8, i: usize, value: bool) -> u8 {
}
}

/// Returns whether bit at position `i` in `data` is set or not
/// Sets bit at position `i` in `data`
#[inline]
pub fn set_bit(data: &mut [u8], i: usize, value: bool) {
data[i / 8] = set(data[i / 8], i % 8, value);
Expand Down

0 comments on commit b46a636

Please sign in to comment.