fix(core): Use correct operations/values in unbounded_shr
doctests
This commit is contained in:
parent
27b63b85ec
commit
2cf48eaebc
2 changed files with 2 additions and 2 deletions
|
@ -1449,7 +1449,7 @@ macro_rules! int_impl {
|
|||
/// Basic usage:
|
||||
/// ```
|
||||
/// #![feature(unbounded_shifts)]
|
||||
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shl(4), 0x1);")]
|
||||
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(4), 0x1);")]
|
||||
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(129), 0);")]
|
||||
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.unbounded_shr(129), -1);")]
|
||||
/// ```
|
||||
|
|
|
@ -1637,7 +1637,7 @@ macro_rules! uint_impl {
|
|||
/// Basic usage:
|
||||
/// ```
|
||||
/// #![feature(unbounded_shifts)]
|
||||
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(4), 0x10);")]
|
||||
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(4), 0x1);")]
|
||||
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(129), 0);")]
|
||||
/// ```
|
||||
#[unstable(feature = "unbounded_shifts", issue = "129375")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue