mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Mention parameterless main function
This commit is contained in:
parent
00ebcdc55c
commit
3aada35d9a
@ -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