diff --git a/overviews/core/_posts/2012-11-03-value-classes.md b/overviews/core/_posts/2012-11-03-value-classes.md index 0b615b037d..291deb2fab 100644 --- a/overviews/core/_posts/2012-11-03-value-classes.md +++ b/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 The following fragment of `RichInt` shows how it extends `Int` to allow the expression `3.toHexString`: - class RichInt(val self: Int) extends AnyVal { + implicit class RichInt(val self: Int) extends AnyVal { def toHexString: String = java.lang.Integer.toHexString(self) }