Skip to content

Commit 51c6ca8

Browse files
authored
update: remove Kotlin 1.3 references
Mentioning 1.3 seems less than useful at this point.
2 parents 0e614d4 + a5f7ebd commit 51c6ca8

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

examples/01_introduction/01_Hello world.md

+2-10
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@ fun main() { // 2
99
```
1010

1111
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.
12-
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.
13-
3. `println` writes a line to the standard output. It is imported implicitly. Also note that semicolons are optional.
14-
15-
In Kotlin versions earlier than 1.3, the `main` function must have a parameter of type `Array<String>`.
16-
17-
```run-kotlin
18-
fun main(args: Array<String>) {
19-
println("Hello, World!")
20-
}
21-
```
12+
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.
13+
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.
2214

0 commit comments

Comments
 (0)