Skip to content

Commit d32c771

Browse files
authored
Merge pull request #2018 from tdudzik/fix-condition-in-scala3-book
Fix if condition in Scala3 book
2 parents 8461866 + 60971fe commit d32c771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-book/taste-control-structures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Scala’s `if`/`else` control structure looks similar to other languages:
2727
```scala
2828
if x < 0 then
2929
println("negative")
30-
else if x == 0
30+
else if x == 0 then
3131
println("zero")
3232
else
3333
println("positive")

0 commit comments

Comments
 (0)