8000 Merge pull request #423 from briangordon/patch-1 · at15/scala.github.com@bd7a66c · GitHub
[go: up one dir, main page]

Skip to content

Commit bd7a66c

Browse files
committed
Merge pull request scala#423 from briangordon/patch-1
Update 2012-11-03-value-classes.md
2 parents d43d7ef + bf43041 commit bd7a66c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

overviews/core/_posts/2012-11-03-value-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ One use case for value classes is to combine them with implicit classes ([SIP-13
4747

4848
The following fragment of `RichInt` shows how it extends `Int` to allow the expression `3.toHexString`:
4949

50< 4EDA code>-
class RichInt(val self: Int) extends AnyVal {
50+
implicit class RichInt(val self: Int) extends AnyVal {
5151
def toHexString: String = java.lang.Integer.toHexString(self)
5252
}
5353

0 commit comments

Comments
 (0)
0