Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update: remove Kotlin 1.3 references #213

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions examples/01_introduction/01_Hello world.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ fun main() { // 2
```

1. Kotlin code is usually defined in packages. Package specification is optional: If you don't specify a package in a source file, its content goes to the default package.
2. An entry point to a Kotlin application is the `main` function. Since Kotlin 1.3, you can declare `main` without any parameters. The return type is not specified, which means that the function returns nothing.
3. `println` writes a line to the standard output. It is imported implicitly. Also note that semicolons are optional.

In Kotlin versions earlier than 1.3, the `main` function must have a parameter of type `Array<String>`.

```run-kotlin
fun main(args: Array<String>) {
println("Hello, World!")
}
```
2. An entry point to a Kotlin application is the `main` function. You can declare it without any parameters. The return type is not specified, which means that the function returns nothing.
3. `println` writes a line to the standard output. It is imported implicitly. Also, note that semicolons at the end of code lines are optional.

Loading