about summary refs log tree commit diff
path: root/src/libcore/num
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2019-10-18 13:48:37 -0700
committerGitHub <noreply@github.com>2019-10-18 13:48:37 -0700
commitedc42a91fdcbf9fb01b74aa78c5bfdfc859d4574 (patch)
treedc709490fa126f4f0209f61bd1f1ae7c8d8845c4 /src/libcore/num
parent37cbdf3924b6b13b8509eed0a9a6ce8c9f6eef93 (diff)
parent769e75b40c53b5113e8206b70692fef8846de77a (diff)
downloadrust-edc42a91fdcbf9fb01b74aa78c5bfdfc859d4574.tar.gz
rust-edc42a91fdcbf9fb01b74aa78c5bfdfc859d4574.zip
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.
Diffstat (limited to 'src/libcore/num')
-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