Skip to content

Commit 0c70b0f

Browse files
committed
Avoid a double negative in the safety documentation
1 parent 4dca6d7 commit 0c70b0f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,7 @@ where
475475
///
476476
/// # Safety
477477
///
478-
/// The argument must not have set bits at positions not corresponding to
479-
/// any flag.
478+
/// All bits set in `val` must correspond to a value of the enum.
480479
#[must_use]
481480
#[inline(always)]
482481
pub unsafe fn from_bits_unchecked(val: T::Numeric) -> Self {
@@ -728,8 +727,7 @@ for_each_uint! { $ty $hide_docs =>
728727
///
729728
/// # Safety
730729
///
731-
/// The argument must not have set bits at positions not corresponding to
732-
/// any flag.
730+
/// All bits set in `val` must correspond to a value of the enum.
733731
#[must_use]
734732
#[inline(always)]
735733
$(#[$hide_docs])?

0 commit comments

Comments
 (0)