Skip to content

Commit 296e2b4

Browse files
committed
Apply change to ba translations
1 parent 503d9d0 commit 296e2b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

_ba/tour/basics.md

+5
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,17 @@ println("Hello, " + name + "!")
156156
Postoje i neke druge razlike, ali zasad, možete misliti o njima kao nečemu sličnom funkcijama.
157157

158158
Metode mogu imati višelinijske izraze također.
159+
160+
{% scalafiddle %}
159161
```tut
160162
def getSquareString(input: Double): String = {
161163
val square = input * input
162164
square.toString
163165
}
166+
println(getSquareString(2.5)) // 6.25
164167
```
168+
{% endscalafiddle %}
169+
165170
Zadnjo izraz u tijelu metode je povratna vrijednost metode. (Scala ima ključnu riječ `return`, ali se rijetko koristi.)
166171

167172
## Klase

0 commit comments

Comments
 (0)