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.
1 parent d43d7ef commit bf43041Copy full SHA for bf43041
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