Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaff3700

Browse files
authored
Merge pull requestscala#1136 from Philippus/fix-tut-blocks
Make tut blocks tut 0.6.7 compatible
2 parents7455f07 +eff1de3 commitaff3700

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

‎_ko/tour/basics.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ println(x) // 2
5757

5858
`x` 같이 이름이 붙여진 결과를 값이라고 부른다. 참조된 값은 재연산하지 않으며 값을 재할당할 수 없다.
5959

60-
```tut:nofail
61-
val x = 1 + 1
60+
```tut:fail
6261
x = 3 // This does not compile.
6362
```
6463

@@ -226,15 +225,13 @@ if (point == anotherPoint) {
226225
println(point + " and " + anotherPoint + " are the same.")
227226
} else {
228227
println(point + " and " + anotherPoint + " are different.")
229-
}
230-
// Point(1,2) and Point(1,2) are the same.
228+
} // Point(1,2) and Point(1,2) are the same.
231229
232230
if (point == yetAnotherPoint) {
233231
println(point + " and " + yetAnotherPoint + " are the same.")
234232
} else {
235233
println(point + " and " + yetAnotherPoint + " are different.")
236-
}
237-
// Point(1,2) and Point(2,2) are different.
234+
} // Point(1,2) and Point(2,2) are different.
238235
```
239236

240237
소개할 케이스 클래스가 많고 마음에 들었으면 좋겠다. 이후[케이스 클래스 페이지](case-classes.html)에서 자세히 다룰 것이다.
@@ -324,4 +321,4 @@ object Main {
324321
}
325322
```
326323

327-
공병국 옮김
324+
공병국 옮김

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp