diff options
author | Henning Post <henningpost@gmail.com> | 2018-10-31 11:39:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-31 11:39:25 -0700 |
commit | 3aada35d9a938e1af78328c8ee170ac71846fb10 (patch) | |
tree | 4fd012590a08723c09bb8d69d3386020ba96d668 /kotlin.html.markdown | |
parent | 00ebcdc55c0ec3dd2f6b8dafc190c9a85a26b114 (diff) |
Mention parameterless main function
Diffstat (limited to 'kotlin.html.markdown')
-rw-r--r-- | kotlin.html.markdown | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kotlin.html.markdown b/kotlin.html.markdown index 81242bac..9bc8b420 100644 --- a/kotlin.html.markdown +++ b/kotlin.html.markdown @@ -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>) { /* |