mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 21:52:31 +03:00
Improve Kotlin variables explanation
This commit is contained in:
commit
08331fe00f
@ -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