@@ -415,9 +415,9 @@ macro_rules! uint_impl {
415415 return intrinsics:: rotate_right( self , n) ;
416416 }
417417
418- /// Performs a left funnel shift (concatenates `self` with `rhs `, with `self`
419- /// making up the most significant half, then shifts the combined value left
420- /// by `n`, and most significant half is extracted to produce the result).
418+ /// Performs a left funnel shift (concatenates `self` with `low `, with `self`
419+ /// making up the high half, then shifts the combined value left
420+ /// by `n`, and the high half is extracted to produce the result).
421421 ///
422422 /// Please note this isn't the same operation as the `<<` shifting operator or
423423 /// [`rotate_left`](Self::rotate_left), although `a.funnel_shl(a, n)` is *equivalent*
@@ -444,15 +444,15 @@ macro_rules! uint_impl {
444444 #[ must_use = "this returns the result of the operation, \
445445 without modifying the original"]
446446 #[ inline( always) ]
447- pub const fn funnel_shl( self , rhs : Self , n: u32 ) -> Self {
447+ pub const fn funnel_shl( self , right : Self , n: u32 ) -> Self {
448448 assert!( n < Self :: BITS , "attempt to funnel shift left with overflow" ) ;
449449 // SAFETY: just checked that `shift` is in-range
450- unsafe { intrinsics:: unchecked_funnel_shl( self , rhs , n) }
450+ unsafe { intrinsics:: unchecked_funnel_shl( self , right , n) }
451451 }
452452
453- /// Performs a right funnel shift (concatenates `self` and `rhs `, with `self`
454- /// making up the most significant half, then shifts the combined value right
455- /// by `n`, and least significant half is extracted to produce the result).
453+ /// Performs a right funnel shift (concatenates `self` and `right `, with `self`
454+ /// making up the high half, then shifts the combined value right
455+ /// by `n`, and the low half is extracted to produce the result).
456456 ///
457457 /// Please note this isn't the same operation as the `>>` shifting operator or
458458 /// [`rotate_right`](Self::rotate_right), although `a.funnel_shr(a, n)` is *equivalent*
@@ -479,10 +479,10 @@ macro_rules! uint_impl {
479479 #[ must_use = "this returns the result of the operation, \
480480 without modifying the original"]
481481 #[ inline( always) ]
482- pub const fn funnel_shr( self , rhs : Self , n: u32 ) -> Self {
482+ pub const fn funnel_shr( self , right : Self , n: u32 ) -> Self {
483483 assert!( n < Self :: BITS , "attempt to funnel shift right with overflow" ) ;
484484 // SAFETY: just checked that `shift` is in-range
485- unsafe { intrinsics:: unchecked_funnel_shr( self , rhs , n) }
485+ unsafe { intrinsics:: unchecked_funnel_shr( self , right , n) }
486486 }
487487
488488 /// Performs a carry-less multiplication, returning the lower bits.
0 commit comments