Skip to content

Conversation

@benluo
Copy link
Contributor

@benluo benluo commented Oct 19, 2022

No description provided.

Scala 3 offers a new way to define programs that can be invoked from the command line: Adding a `@main` annotation to a method turns it into entry point of an executable program:

{% tabs method_1 %}
{% tab 'Scala 3 Only' for=method_1 %}
Copy link
Member

@bishabosha bishabosha Oct 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey for new PR you don't need for=... anymore :)

Suggested change
{% tab 'Scala 3 Only' for=method_1 %}
{% tab 'Scala 3 Only' %}

as long as you base on a recent main branch

Copy link
Member

@bishabosha bishabosha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@bishabosha bishabosha merged commit 298afad into scala:main Oct 19, 2022
@benluo benluo deleted the _overview/scala3-book/num25-code-tabs branch October 19, 2022 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants