summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorharryhuk <mpharrison@gmail.com>2014-06-03 11:46:55 +0100
committerharryhuk <mpharrison@gmail.com>2014-06-03 11:46:55 +0100
commit17b99e2587251cdb02e9d96fc2f87143be3160b8 (patch)
tree733855ab3193a5ed03dceb0dfdf786541a4824f3
parent9b37ade57e8fc9f96ee0c608e8f35b094ac41920 (diff)
downloadscala-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
-rw-r--r--src/compiler/scala/tools/cmd/gen/AnyVals.scala4
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" +