mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-13 10:14:58 +02:00
Fix 'Immutability' typo
This commit is contained in:
@@ -37,7 +37,7 @@ println("Hello world!")
|
|||||||
print("Hello world")
|
print("Hello world")
|
||||||
|
|
||||||
// Declaring values is done using either var or val
|
// Declaring values is done using either var or val
|
||||||
// val declarations are immutable, whereas var's are mutable. Immutablility is
|
// val declarations are immutable, whereas var's are mutable. Immutability is
|
||||||
// a good thing.
|
// a good thing.
|
||||||
val x = 10 // x is now 10
|
val x = 10 // x is now 10
|
||||||
x = 20 // error: reassignment to val
|
x = 20 // error: reassignment to val
|
||||||
|
Reference in New Issue
Block a user