Skip to content

Commit

Permalink
Merge pull request #10438 from som-snytt/spec/unary-int
Browse files Browse the repository at this point in the history
Tweak spec for subrange unary_-
  • Loading branch information
lrytz committed Jul 5, 2023
2 parents c95d9a3 + 029b71d commit 57b8dcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/12-the-scala-standard-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ Any numeric value type ´T´ supports the following methods.
operation type and performing the given arithmetic operation of that
type.
* Parameterless arithmetic methods identity (`+`) and negation
(`-`), with result type ´T´. The first of these returns the
receiver unchanged, whereas the second returns its negation.
(`-`), with result type ´T´, or `Int` if ´T´ is a subrange type.
The first of these returns the receiver unchanged, whereas the second returns its negation.
* Conversion methods `toByte`, `toShort`, `toChar`,
`toInt`, `toLong`, `toFloat`, `toDouble` which
convert the receiver object to the target type, using the rules of
Expand Down

0 comments on commit 57b8dcc

Please sign in to comment.