Skip to content

Commit b6e2e6f

Browse files
committed
Apply change to Japanese translations
1 parent 02df798 commit b6e2e6f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

_ja/tour/basics.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,17 @@ println("Hello, " + name + "!")
171171
メソッドと関数には他にも違いがありますが、今のところは同じようなものと考えて大丈夫です。
172172

173173
メソッドは複数行の式も持つことができます。
174+
175+
{% scalafiddle %}
174176
```tut
175177
def getSquareString(input: Double): String = {
176178
val square = input * input
177179
square.toString
178180
}
181+
println(getSquareString(2.5)) // 6.25
179182
```
183+
{% endscalafiddle %}
184+
180185
メソッド本体にある最後の式はメソッドの戻り値になります。(Scalaには`return`キーワードはありますが、めったに使われません。)
181186

182187
## クラス

0 commit comments

Comments
 (0)