From a5f7ebd7c15b49f94e6688055c8b59e827629235 Mon Sep 17 00:00:00 2001 From: Aleksey Zamulla Date: Mon, 25 Mar 2024 13:14:31 +0400 Subject: [PATCH] update: remove Kotlin 1.3 references --- examples/01_introduction/01_Hello world.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/examples/01_introduction/01_Hello world.md b/examples/01_introduction/01_Hello world.md index 53ca52a..fed021f 100755 --- a/examples/01_introduction/01_Hello world.md +++ b/examples/01_introduction/01_Hello world.md @@ -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`. - -```run-kotlin -fun main(args: Array) { - 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.