Skip to content

Commit 5299ef1

Browse files
committed
fix(core): Use correct operations/values in unbounded_shr doctests
1 parent 8423006 commit 5299ef1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/num/int_macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ macro_rules! int_impl {
14491449
/// Basic usage:
14501450
/// ```
14511451
/// #![feature(unbounded_shifts)]
1452-
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shl(4), 0x1);")]
1452+
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(4), 0x1);")]
14531453
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(129), 0);")]
14541454
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.unbounded_shr(129), -1);")]
14551455
/// ```

core/src/num/uint_macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,7 @@ macro_rules! uint_impl {
16371637
/// Basic usage:
16381638
/// ```
16391639
/// #![feature(unbounded_shifts)]
1640-
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(4), 0x10);")]
1640+
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(4), 0x1);")]
16411641
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(129), 0);")]
16421642
/// ```
16431643
#[unstable(feature = "unbounded_shifts", issue = "129375")]

0 commit comments

Comments
 (0)