File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ x = 3 // この記述はコンパイルされません。
63
63
val x : Int = 1 + 1
64
64
```
65
65
66
- 型定義では` Int ` は識別子` x ` の後にくることに注意してください。そして` : ` も必要となります。
66
+ 型定義では` Int ` は識別子` x ` の後にくることに注意してください。そして` : ` も必要となります。
67
67
68
68
### 変数
69
69
@@ -210,15 +210,15 @@ val yetAnotherPoint = Point(2, 2)
210
210
211
211
``` scala mdoc
212
212
if (point == anotherPoint) {
213
- println(point + " と " + anotherPoint + " は同じです。" )
213
+ println(s " $ point と $ anotherPoint は同じです。 " )
214
214
} else {
215
- println(point + " と " + anotherPoint + " は異なります。" )
215
+ println(s " $ point と $ anotherPoint は異なります。 " )
216
216
} // Point(1,2) と Point(1,2) は同じです。
217
217
218
218
if (point == yetAnotherPoint) {
219
- println(point + " と " + yetAnotherPoint + " は同じです。" )
219
+ println(s " $ point と $ yetAnotherPoint は同じです。 " )
220
220
} else {
221
- println(point + " と " + yetAnotherPoint + " は異なります。" )
221
+ println(s " $ point と $ yetAnotherPoint は異なります。 " )
222
222
} // Point(1,2) と Point(2,2) は異なります。
223
223
```
224
224
Original file line number Diff line number Diff line change @@ -220,15 +220,15 @@ Są one porównywane przez wartości - _nie_ przez referencje.
220
220
221
221
``` scala mdoc
222
222
if (point == anotherPoint) {
223
- println(point + " i " + anotherPoint + " są jednakowe." )
223
+ println(s " $ point i $ anotherPoint są jednakowe. " )
224
224
} else {
225
- println(point + " i " + anotherPoint + " są inne." )
225
+ println(s " $ point i $ anotherPoint są inne. " )
226
226
} // Point(1,2) i Point(1,2) są jednakowe.
227
227
228
228
if (point == yetAnotherPoint) {
229
- println(point + " i " + yetAnotherPoint + " są jednakowe." )
229
+ println(s " $ point i $ yetAnotherPoint są jednakowe. " )
230
230
} else {
231
- println(point + " i " + yetAnotherPoint + " są inne." )
231
+ println(s " $ point i $ yetAnotherPoint są inne. " )
232
232
} // Point(1,2) i Point(2,2) są inne.
233
233
```
234
234
You can’t perform that action at this time.
0 commit comments