1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-19 13:02:14 +02:00

Merge pull request #3380 from hpost/patch-1

[kotlin/en] Mention parameterless main function
This commit is contained in:
Divay Prakash
2018-11-01 12:41:26 +05:30
committed by GitHub

View File

@@ -20,7 +20,9 @@ package com.learnxinyminutes.kotlin
/*
The entry point to a Kotlin program is a function named "main".
The function is passed an array containing any command line arguments.
The function is passed an array containing any command-line arguments.
Since Kotlin 1.3 the "main" function can also be defined without
any parameters.
*/
fun main(args: Array<String>) {
/*