You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/reference/changed-features/main-functions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ This would generate a main program `happyBirthday` that could be called like thi
27
27
28
28
```
29
29
> scala happyBirthday 23 Lisa Peter
30
-
Happy 23rd Birthday, Lisa and Peter!
30
+
Happy 23rd birthday, Lisa and Peter
31
31
```
32
32
33
33
A `@main` annotated method can be written either at the top-level or in a statically accessible object. The name of the program is in each case the name of the method, without any object prefixes. The `@main` method can have an arbitrary number of parameters.
0 commit comments