Skip to content

Commit b292ee9

Browse files
authored
Merge pull request #2358 from scala/fix-2357
Add parentheses to hello method definition
2 parents 8b36584 + e2f00f6 commit b292ee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-book/taste-hello-world.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A Scala 3 “Hello, world!” example goes as follows.
1212
First, put this code in a file named _Hello.scala_:
1313

1414
```scala
15-
@main def hello = println("Hello, world!")
15+
@main def hello() = println("Hello, world!")
1616
```
1717

1818
In this code, `hello` is a method.

0 commit comments

Comments
 (0)