Skip to content

Commit 5b81f19

Browse files
authored
Typo 'BirthDay' -> 'Birthday' (#16190)
2 parents ed0c4aa + 9844337 commit 5b81f19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/_docs/reference/changed-features/main-functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The Scala compiler generates a program from a [`@main`](https://scala-lang.org/a
5757
- The generated `main` method calls method `f` with arguments converted using
5858
methods in the [`scala.util.CommandLineParser`](https://scala-lang.org/api/3.x/scala/util/CommandLineParser$.html) object.
5959

60-
For instance, the `happyBirthDay` method above would generate additional code equivalent to the following class:
60+
For instance, the `happyBirthday` method above would generate additional code equivalent to the following class:
6161

6262
```scala
6363
final class happyBirthday:
@@ -73,7 +73,7 @@ final class happyBirthday:
7373
```
7474

7575
**Note**: The `<static>` modifier above expresses that the `main` method is generated
76-
as a static method of class `happyBirthDay`. It is not available for user programs in Scala. Regular "static" members are generated in Scala using objects instead.
76+
as a static method of class `happyBirthday`. It is not available for user programs in Scala. Regular "static" members are generated in Scala using objects instead.
7777

7878
[`@main`](https://scala-lang.org/api/3.x/scala/main.html) methods are the recommended scheme to generate programs that can be invoked from the command line in Scala 3. They replace the previous scheme to write program as objects with a special `App` parent class. In Scala 2, `happyBirthday` could be written also like this:
7979

0 commit comments

Comments
 (0)