Skip to content

Commit 446a51f

Browse files
committed
Removed 'do' line from the Scala 2 while section
1 parent 99a53de commit 446a51f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ In Scala 2, the syntax was a bit different. The condition was surrounded by pare
239239
there was no `do` keyword:
240240

241241
```scala
242-
while (x >= 0) do x = f(x)
243242
while (x >= 0) { x = f(x) }
244243
```
245244

0 commit comments

Comments
 (0)