Skip to content

Commit 864afa6

Browse files
authored
Small fix typo
1 parent bbd75f7 commit 864afa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/num/int_macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,7 @@ macro_rules! int_impl {
14251425
#[must_use = "this returns the result of the operation, \
14261426
without modifying the original"]
14271427
#[rustc_const_unstable(feature = "unchecked_shifts", issue = "85122")]
1428-
#[inline(always)]0
1428+
#[inline(always)]
14291429
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
14301430
#[requires(rhs < <$ActualT>::BITS)] // i.e. requires the right hand side of the shift (rhs) to be less than the number of bits in the type. This prevents undefined behavior.
14311431
#[ensures(|ret| *ret >= $SelfT::MIN && *ret <= $SelfT::MAX)] // ensures result is within range after bit shift

0 commit comments

Comments
 (0)