Skip to content

Commit 584c2e6

Browse files
Update _ja/tour/classes.md
Integer => 整数、回りくどいので Unitの値 => Unit値 Co-Authored-By: eugene yokota <eed3si9n@gmail.com>
1 parent e6e9a72 commit 584c2e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_ja/tour/classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ println(point1) // prints (2, 3)
5454
この`Point`クラスは4つのメンバーを持ちます。
5555
変数`x``y` そしてメソッド `move``toString`です。
5656
多くの他の言語とは異なり、プライマリコンストラクタはクラスのシグネチャ`(var x: Int, var y: Int)`です。
57-
`move`メソッドは2つのInteger引数を受け取り、意味を持たないUnitの値である`()` を返します。
57+
`move` メソッドは2つの整数の引数を受け取り、情報を持たない Unit 値 `()` を返します。
5858
これは乱暴に言えば、Javaのような言語における`void`に対応します。
5959
その一方で`toString`は引数を受け取りませんが、`String`の値を返します。
6060
`toString`[`AnyRef`](unified-types.html)`toString`をオーバーライドしているので、`override`キーワードのタグが付いています。

0 commit comments

Comments
 (0)