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 e0ced78 commit a5f5becCopy full SHA for a5f5bec
ja/overviews/core/value-classes.md
@@ -47,7 +47,7 @@ title: 値クラスと汎用トレイト
47
48
`RichInt` から抜粋した以下のコードは、それが `Int` を拡張して `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