8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d43d7ef + bf43041 commit bd7a66cCopy full SHA for bd7a66c
overviews/core/_posts/2012-11-03-value-classes.md
@@ -47,7 +47,7 @@ One use case for value classes is to combine them with implicit classes ([SIP-13
47
48
The following fragment of `RichInt` shows how it extends `Int` to allow the expression `3.toHexString`:
49
50
- class RichInt(val self: Int) extends AnyVal {
+ implicit class RichInt(val self: Int) extends AnyVal {
51
def toHexString: String = java.lang.Integer.toHexString(self)
52
}
53
0 commit comments