Merge #105
105: fix unsigned_shr docs r=cuviper a=lcnr Co-authored-by: lcnr/Bastian Kauschke <bastian_kauschke@hotmail.de>
This commit is contained in:
commit
8915b74ae4
|
@ -171,10 +171,10 @@ pub trait PrimInt:
|
||||||
/// ```
|
/// ```
|
||||||
/// use num_traits::PrimInt;
|
/// use num_traits::PrimInt;
|
||||||
///
|
///
|
||||||
/// let n = 0xFEDCBA9876543210i64;
|
/// let n = -8i8; // 0b11111000
|
||||||
/// let m = 0x000FEDCBA9876543i64;
|
/// let m = 62i8; // 0b00111110
|
||||||
///
|
///
|
||||||
/// assert_eq!(n.unsigned_shr(12), m);
|
/// assert_eq!(n.unsigned_shr(2), m);
|
||||||
/// ```
|
/// ```
|
||||||
fn unsigned_shr(self, n: u32) -> Self;
|
fn unsigned_shr(self, n: u32) -> Self;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue