summaryrefslogtreecommitdiffhomepage
path: root/ko-kr/kotlin-kr.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'ko-kr/kotlin-kr.html.markdown')
-rw-r--r--ko-kr/kotlin-kr.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/ko-kr/kotlin-kr.html.markdown b/ko-kr/kotlin-kr.html.markdown
index 9b2294d4..788f80c5 100644
--- a/ko-kr/kotlin-kr.html.markdown
+++ b/ko-kr/kotlin-kr.html.markdown
@@ -186,13 +186,13 @@ fun helloWorld(val name : String) {
// "with" 함수는 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)
/*
"listOf" 함수로 리스트를 만들 수 있습니다.