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
commit 2ad287ab7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>) {
/*