mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-05-05 14:28:31 +00:00
Merge pull request #3380 from hpost/patch-1
[kotlin/en] Mention parameterless main function
This commit is contained in:
commit
2ad287ab7d
@ -20,7 +20,9 @@ package com.learnxinyminutes.kotlin
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
The entry point to a Kotlin program is a function named "main".
|
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>) {
|
fun main(args: Array<String>) {
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user