summaryrefslogtreecommitdiffhomepage
path: root/kotlin.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'kotlin.html.markdown')
-rw-r--r--kotlin.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/kotlin.html.markdown b/kotlin.html.markdown
index d1f1aae6..a7f26126 100644
--- a/kotlin.html.markdown
+++ b/kotlin.html.markdown
@@ -189,13 +189,13 @@ fun helloWorld(val name : String) {
// The "with" function is similar to the JavaScript "with" statement.
data class MutableDataClassExample (var x: Int, var y: Int, var z: Int)
- val fooMutableDate = MutableDataClassExample(7, 4, 9)
- with (fooMutableDate) {
+ val fooMutableData = MutableDataClassExample(7, 4, 9)
+ with (fooMutableData) {
x -= 2
y += 2
z--
}
- println(fooMutableDate) // => MutableDataClassExample(x=5, y=6, z=8)
+ println(fooMutableData) // => MutableDataClassExample(x=5, y=6, z=8)
/*
We can create a list using the "listOf" function.