diff options
author | harryhuk <mpharrison@gmail.com> | 2014-06-03 11:46:55 +0100 |
---|---|---|
committer | harryhuk <mpharrison@gmail.com> | 2014-06-03 11:46:55 +0100 |
commit | 17b99e2587251cdb02e9d96fc2f87143be3160b8 (patch) | |
tree | 733855ab3193a5ed03dceb0dfdf786541a4824f3 /src/compiler/scala/tools/cmd | |
parent | 9b37ade57e8fc9f96ee0c608e8f35b094ac41920 (diff) | |
download | scala-17b99e2587251cdb02e9d96fc2f87143be3160b8.tar.gz scala-17b99e2587251cdb02e9d96fc2f87143be3160b8.tar.bz2 scala-17b99e2587251cdb02e9d96fc2f87143be3160b8.zip |
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
Diffstat (limited to 'src/compiler/scala/tools/cmd')
-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" + |