about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTobias Rapp <t.rapp@noa-archive.com>2019-10-18 08:29:18 +0200
committerTobias Rapp <t.rapp@noa-archive.com>2019-10-18 08:46:30 +0200
commit769e75b40c53b5113e8206b70692fef8846de77a (patch)
tree17a84eadf6730dc697eed910af604af27ddffb53
parenta16dca337de610986252bb800953e57bf395863f (diff)
downloadrust-769e75b40c53b5113e8206b70692fef8846de77a.tar.gz
rust-769e75b40c53b5113e8206b70692fef8846de77a.zip
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.
-rw-r--r--src/libcore/num/wrapping.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/num/wrapping.rs b/src/libcore/num/wrapping.rs
index 59a10ae99bb..5fe9895d8d2 100644
--- a/src/libcore/num/wrapping.rs
+++ b/src/libcore/num/wrapping.rs
@@ -437,7 +437,7 @@ assert_eq!(n.trailing_zeros(), 3);
             /// wrapping the truncated bits to the end of the resulting
             /// integer.
             ///
-            /// Please note this isn't the same operation as the `>>` shifting
+            /// Please note this isn't the same operation as the `<<` shifting
             /// operator!
             ///
             /// # Examples
@@ -463,7 +463,7 @@ assert_eq!(n.trailing_zeros(), 3);
             /// wrapping the truncated bits to the beginning of the resulting
             /// integer.
             ///
-            /// Please note this isn't the same operation as the `<<` shifting
+            /// Please note this isn't the same operation as the `>>` shifting
             /// operator!
             ///
             /// # Examples