New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc for Int >> and Long >> says bit-shift left #8641
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8641?orig=1 |
Matthew Harrison (harryhuk) said: |
Matthew Harrison (harryhuk) said: |
Matthew Harrison (harryhuk) said: |
Matthew Harrison (harryhuk) said: |
Linas Medžiūnas (linasm) said (edited on Jan 2, 2016 9:33:56 PM UTC): |
Linas Medžiūnas (linasm) said: |
The Scala API doc for Int method >> and Long method >> appear to be copy-pasted from << without modifying:
"Returns this value bit-shifted left by the specified number of bits, filling in the right bits with the same value as the left-most bit of this. The effect of this is to retain the sign of the value."
The example is correct, though.
The text was updated successfully, but these errors were encountered: