Skip to content

Commit ab3b608

Browse files
committed
Apply change to pl translations
1 parent 087899a commit ab3b608

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

_pl/tour/basics.md

+3
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,15 @@ Od funkcji odróżnia je jeszcze kilka innych rzeczy, ale na razie możesz o nic
181181

182182
Metody mogą zawierać również wyrażenia wielowierszowe.
183183

184+
{% scalafiddle %}
184185
```tut
185186
def getSquareString(input: Double): String = {
186187
val square = input * input
187188
square.toString
188189
}
190+
println(getSquareString(2.5)) // 6.25
189191
```
192+
{% endscalafiddle %}
190193

191194
Ostatnie wyrażenie w ciele metody jest wartością, jaką zwraca cała metoda.
192195
Scala posiada słowo kluczowe `return`, ale jest ono wykorzystywane bardzo rzadko.

0 commit comments

Comments
 (0)