[kotlin/all] Rename variable fooMutableDate to fooMutableData (#2688) (#2689)

This commit is contained in:
Pablo Najt 2017-03-24 14:53:41 -03:00 committed by ven
parent 29f41f2802
commit c1d773eab7
4 changed files with 12 additions and 12 deletions

View File

@ -185,13 +185,13 @@ fun main(args: Array<String>) {
// La función "with" es similar a la expresión de JavaScript "with". // 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) data class MutableDataClassExample (var x: Int, var y: Int, var z: Int)
val fooMutableDate = MutableDataClassExample(7, 4, 9) val fooMutableData = MutableDataClassExample(7, 4, 9)
with (fooMutableDate) { with (fooMutableData) {
x -= 2 x -= 2
y += 2 y += 2
z-- 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". Podemos crear una lista utilizando la función "listOf".

View File

@ -186,13 +186,13 @@ fun helloWorld(val name : String) {
// "with" 함수는 JavaScript 의 "with" 구문과 비슷하게 사용됩니다. // "with" 함수는 JavaScript 의 "with" 구문과 비슷하게 사용됩니다.
data class MutableDataClassExample (var x: Int, var y: Int, var z: Int) data class MutableDataClassExample (var x: Int, var y: Int, var z: Int)
val fooMutableDate = MutableDataClassExample(7, 4, 9) val fooMutableData = MutableDataClassExample(7, 4, 9)
with (fooMutableDate) { with (fooMutableData) {
x -= 2 x -= 2
y += 2 y += 2
z-- z--
} }
println(fooMutableDate) // => MutableDataClassExample(x=5, y=6, z=8) println(fooMutableData) // => MutableDataClassExample(x=5, y=6, z=8)
/* /*
"listOf" 함수로 리스트를 만들 있습니다. "listOf" 함수로 리스트를 만들 있습니다.

View File

@ -189,13 +189,13 @@ fun helloWorld(val name : String) {
// The "with" function is similar to the JavaScript "with" statement. // The "with" function is similar to the JavaScript "with" statement.
data class MutableDataClassExample (var x: Int, var y: Int, var z: Int) data class MutableDataClassExample (var x: Int, var y: Int, var z: Int)
val fooMutableDate = MutableDataClassExample(7, 4, 9) val fooMutableData = MutableDataClassExample(7, 4, 9)
with (fooMutableDate) { with (fooMutableData) {
x -= 2 x -= 2
y += 2 y += 2
z-- 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. We can create a list using the "listOf" function.

View File

@ -178,13 +178,13 @@ fun helloWorld(val name : String) {
// "with"函数类似于JavaScript中的"with"用法。 // "with"函数类似于JavaScript中的"with"用法。
data class MutableDataClassExample (var x: Int, var y: Int, var z: Int) data class MutableDataClassExample (var x: Int, var y: Int, var z: Int)
val fooMutableDate = MutableDataClassExample(7, 4, 9) val fooMutableData = MutableDataClassExample(7, 4, 9)
with (fooMutableDate) { with (fooMutableData) {
x -= 2 x -= 2
y += 2 y += 2
z-- z--
} }
println(fooMutableDate) // => MutableDataClassExample(x=5, y=6, z=8) println(fooMutableData) // => MutableDataClassExample(x=5, y=6, z=8)
/* /*
我们可以使用"listOf"函数来创建一个list 我们可以使用"listOf"函数来创建一个list