Rollup merge of #65549 - t-rapp:tr-wrapping-rotate-docs, r=jonas-schievink

Fix left/right shift typo in wrapping rotate docs

This makes the note similar to the one found on rotate functions for primitive types like i32/u32.
This commit is contained in:
Tyler Mandry
2019-10-18 13:48:37 -07:00
committed by GitHub

View File

@@ -437,7 +437,7 @@ assert_eq!(n.trailing_zeros(), 3);
/// wrapping the truncated bits to the end of the resulting /// wrapping the truncated bits to the end of the resulting
/// integer. /// integer.
/// ///
/// Please note this isn't the same operation as the `>>` shifting /// Please note this isn't the same operation as the `<<` shifting
/// operator! /// operator!
/// ///
/// # Examples /// # Examples
@@ -463,7 +463,7 @@ assert_eq!(n.trailing_zeros(), 3);
/// wrapping the truncated bits to the beginning of the resulting /// wrapping the truncated bits to the beginning of the resulting
/// integer. /// integer.
/// ///
/// Please note this isn't the same operation as the `<<` shifting /// Please note this isn't the same operation as the `>>` shifting
/// operator! /// operator!
/// ///
/// # Examples /// # Examples