Skip to content

Commit a5f5bec

Browse files
committed
Fix extension methods example in the ja documentation
1 parent e0ced78 commit a5f5bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ja/overviews/core/value-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ title: 値クラスと汎用トレイト
4747

4848
`RichInt` から抜粋した以下のコードは、それが `Int` を拡張して `3.toHexString` という式が書けるようにしていることを示す:
4949

50-
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)