Skip to content

Commit

Permalink
Tweak spec for subrange unary_-
Browse files Browse the repository at this point in the history
  • Loading branch information
som-snytt committed Jun 19, 2023
1 parent ebcee62 commit 029b71d
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 029b71d

Please sign in to comment.