Skip to content

Commit 0875d92

Browse files
committed
Merge pull request scala#4892 from linasm/si-8641-2.11
SI-8641 Fix right shift docs for integer types
2 parents 6792b57 + f4f4a62 commit 0875d92

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

src/library/scala/Byte.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ final abstract class Byte private extends AnyVal {
7979
*/
8080
def >>>(x: Long): Int
8181
/**
82-
* Returns this value bit-shifted left by the specified number of bits,
83-
* filling in the right bits with the same value as the left-most bit of this.
82+
* Returns this value bit-shifted right by the specified number of bits,
83+
* filling in the left bits with the same value as the left-most bit of this.
8484
* The effect of this is to retain the sign of the value.
8585
* @example {{{
8686
* -21 >> 3 == -3
@@ -90,8 +90,8 @@ final abstract class Byte private extends AnyVal {
9090
*/
9191
def >>(x: Int): Int
9292
/**
93-
* Returns this value bit-shifted left by the specified number of bits,
94-
* filling in the right bits with the same value as the left-most bit of this.
93+
* Returns this value bit-shifted right by the specified number of bits,
94+
* filling in the left bits with the same value as the left-most bit of this.
9595
* The effect of this is to retain the sign of the value.
9696
* @example {{{
9797
* -21 >> 3 == -3

src/library/scala/Char.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ final abstract class Char private extends AnyVal {
7979
*/
8080
def >>>(x: Long): Int
8181
/**
82-
* Returns this value bit-shifted left by the specified number of bits,
83-
* filling in the right bits with the same value as the left-most bit of this.
82+
* Returns this value bit-shifted right by the specified number of bits,
83+
* filling in the left bits with the same value as the left-most bit of this.
8484
* The effect of this is to retain the sign of the value.
8585
* @example {{{
8686
* -21 >> 3 == -3
@@ -90,8 +90,8 @@ final abstract class Char private extends AnyVal {
9090
*/
9191
def >>(x: Int): Int
9292
/**
93-
* Returns this value bit-shifted left by the specified number of bits,
94-
* filling in the right bits with the same value as the left-most bit of this.
93+
* Returns this value bit-shifted right by the specified number of bits,
94+
* filling in the left bits with the same value as the left-most bit of this.
9595
* The effect of this is to retain the sign of the value.
9696
* @example {{{
9797
* -21 >> 3 == -3

src/library/scala/Int.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ final abstract class Int private extends AnyVal {
7979
*/
8080
def >>>(x: Long): Int
8181
/**
82-
* Returns this value bit-shifted left by the specified number of bits,
83-
* filling in the right bits with the same value as the left-most bit of this.
82+
* Returns this value bit-shifted right by the specified number of bits,
83+
* filling in the left bits with the same value as the left-most bit of this.
8484
* The effect of this is to retain the sign of the value.
8585
* @example {{{
8686
* -21 >> 3 == -3
@@ -90,8 +90,8 @@ final abstract class Int private extends AnyVal {
9090
*/
9191
def >>(x: Int): Int
9292
/**
93-
* Returns this value bit-shifted left by the specified number of bits,
94-
* filling in the right bits with the same value as the left-most bit of this.
93+
* Returns this value bit-shifted right by the specified number of bits,
94+
* filling in the left bits with the same value as the left-most bit of this.
9595
* The effect of this is to retain the sign of the value.
9696
* @example {{{
9797
* -21 >> 3 == -3

src/library/scala/Long.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ final abstract class Long private extends AnyVal {
7979
*/
8080
def >>>(x: Long): Long
8181
/**
82-
* Returns this value bit-shifted left by the specified number of bits,
83-
* filling in the right bits with the same value as the left-most bit of this.
82+
* Returns this value bit-shifted right by the specified number of bits,
83+
* filling in the left bits with the same value as the left-most bit of this.
8484
* The effect of this is to retain the sign of the value.
8585
* @example {{{
8686
* -21 >> 3 == -3
@@ -90,8 +90,8 @@ final abstract class Long private extends AnyVal {
9090
*/
9191
def >>(x: Int): Long
9292
/**
93-
* Returns this value bit-shifted left by the specified number of bits,
94-
* filling in the right bits with the same value as the left-most bit of this.
93+
* Returns this value bit-shifted right by the specified number of bits,
94+
* filling in the left bits with the same value as the left-most bit of this.
9595
* The effect of this is to retain the sign of the value.
9696
* @example {{{
9797
* -21 >> 3 == -3

src/library/scala/Short.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ final abstract class Short private extends AnyVal {
7979
*/
8080
def >>>(x: Long): Int
8181
/**
82-
* Returns this value bit-shifted left by the specified number of bits,
83-
* filling in the right bits with the same value as the left-most bit of this.
82+
* Returns this value bit-shifted right by the specified number of bits,
83+
* filling in the left bits with the same value as the left-most bit of this.
8484
* The effect of this is to retain the sign of the value.
8585
* @example {{{
8686
* -21 >> 3 == -3
@@ -90,8 +90,8 @@ final abstract class Short private extends AnyVal {
9090
*/
9191
def >>(x: Int): Int
9292
/**
93-
* Returns this value bit-shifted left by the specified number of bits,
94-
* filling in the right bits with the same value as the left-most bit of this.
93+
* Returns this value bit-shifted right by the specified number of bits,
94+
* filling in the left bits with the same value as the left-most bit of this.
9595
* The effect of this is to retain the sign of the value.
9696
* @example {{{
9797
* -21 >> 3 == -3

0 commit comments

Comments
 (0)