diff options
author | harryhuk <mpharrison@gmail.com> | 2014-06-03 11:46:55 +0100 |
---|---|---|
committer | Antoine Gourlay <antoine@gourlay.fr> | 2014-08-11 17:53:30 +0200 |
commit | 7bcb31636ccf3db2b90cec4d84b1470d2e0418f9 (patch) | |
tree | 92edd066d5984e32be60fe9ce1db1033fe3369a7 | |
parent | 50167e3f1df664165a2ad485abace5dbce623996 (diff) | |
download | scala-7bcb31636ccf3db2b90cec4d84b1470d2e0418f9.tar.gz scala-7bcb31636ccf3db2b90cec4d84b1470d2e0418f9.tar.bz2 scala-7bcb31636ccf3db2b90cec4d84b1470d2e0418f9.zip |
[backport] Update AnyVals.scala
Corrected api doc for >> operator to say it bit-shifts right rather than left, and fills the left bits rather than the right bit
(cherry picked from commit 17b99e2587251cdb02e9d96fc2f87143be3160b8)
-rw-r--r-- | src/compiler/scala/tools/cmd/gen/AnyVals.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/cmd/gen/AnyVals.scala b/src/compiler/scala/tools/cmd/gen/AnyVals.scala index 842851b4f6..e78589908c 100644 --- a/src/compiler/scala/tools/cmd/gen/AnyVals.scala +++ b/src/compiler/scala/tools/cmd/gen/AnyVals.scala @@ -111,8 +111,8 @@ import scala.language.implicitConversions""" " */"), Op(">>", "/**\n" + - " * Returns this value bit-shifted left by the specified number of bits,\n" + - " * filling in the right bits with the same value as the left-most bit of this.\n" + + " * Returns this value bit-shifted right by the specified number of bits,\n" + + " * filling in the left bits with the same value as the left-most bit of this.\n" + " * The effect of this is to retain the sign of the value.\n" + " * @example {{{\n" + " * -21 >> 3 == -3\n" + |