mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00: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