]> git.lizzy.rs Git - rust.git/commitdiff
rollup merge of #23662: steveklabnik/gh23421
authorAlex Crichton <alex@alexcrichton.com>
Tue, 24 Mar 2015 21:50:48 +0000 (14:50 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 24 Mar 2015 21:50:48 +0000 (14:50 -0700)
I assume since both shifts say the same thing, I should fix both of them, but then I realized I don't strictly know about left shift.

Fixes #23421

r? @pnkfelix

src/doc/reference.md

index 07df3bdad34900ff00de2e1a6e6ed8c03ae2130e..32088b2ab67bf9dbed624557bd0e12ad30eb23e6 100644 (file)
@@ -1265,7 +1265,7 @@ be undesired.
 * Sending signals
 * Accessing/modifying the file system
 * Unsigned integer overflow (well-defined as wrapping)
-* Signed integer overflow (well-defined as two's complement representation
+* Signed integer overflow (well-defined as twos complement representation
   wrapping)
 
 #### Diverging functions
@@ -2961,10 +2961,10 @@ meaning of the operators on standard types is given here.
   : Exclusive or.
     Calls the `bitxor` method of the `std::ops::BitXor` trait.
 * `<<`
-  : Logical left shift.
+  : Left shift.
     Calls the `shl` method of the `std::ops::Shl` trait.
 * `>>`
-  : Logical right shift.
+  : Right shift.
     Calls the `shr` method of the `std::ops::Shr` trait.
 
 #### Lazy boolean operators