diff options
Diffstat (limited to 'es-es')
-rw-r--r-- | es-es/kotlin-es.html.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/es-es/kotlin-es.html.markdown b/es-es/kotlin-es.html.markdown index 5d2f165a..f48f6536 100644 --- a/es-es/kotlin-es.html.markdown +++ b/es-es/kotlin-es.html.markdown @@ -185,13 +185,13 @@ fun main(args: Array<String>) { // La función "with" es similar a la expresión de JavaScript "with". 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) /* Podemos crear una lista utilizando la función "listOf". |