“
In a Scala program, a semicolon at the end of a statement is usually optional. You can type one if you want but you don't have to if the statement appears by itself on a single line.
”
”
Martin Odersky (Programming in Scala Fifth Edition: Updated for Scala 3.0)