mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Update kotlin.html.markdown
Improve variables explanation
This commit is contained in:
parent
088f41898a
commit
f5f86b3df0
@ -26,7 +26,7 @@ any parameters.
|
||||
*/
|
||||
fun main(args: Array<String>) {
|
||||
/*
|
||||
Declaring values is done using either "var" or "val".
|
||||
Declaring variables is done using either "var" or "val".
|
||||
"val" declarations cannot be reassigned, whereas "vars" can.
|
||||
*/
|
||||
val fooVal = 10 // we cannot later reassign fooVal to something else
|
||||
|
Loading…
Reference in New Issue
Block a user