Skip to content

Commit

Permalink
Avoid a double negative in the safety documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
meithecatte committed Mar 24, 2022
1 parent 4dca6d7 commit 0c70b0f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,7 @@ where
///
/// # Safety
///
/// The argument must not have set bits at positions not corresponding to
/// any flag.
/// All bits set in `val` must correspond to a value of the enum.
#[must_use]
#[inline(always)]
pub unsafe fn from_bits_unchecked(val: T::Numeric) -> Self {
Expand Down Expand Up @@ -728,8 +727,7 @@ for_each_uint! { $ty $hide_docs =>
///
/// # Safety
///
/// The argument must not have set bits at positions not corresponding to
/// any flag.
/// All bits set in `val` must correspond to a value of the enum.
#[must_use]
#[inline(always)]
$(#[$hide_docs])?
Expand Down

0 comments on commit 0c70b0f

Please sign in to comment.