Skip to content

Commit 74e5fcb

Browse files
committed
Fix code comment to print the correct value
1 parent 0cf9f94 commit 74e5fcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_tour/classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Point(var x: Int, var y: Int) {
4242
4343
val point1 = new Point(2, 3)
4444
point1.x // 2
45-
println(point1) // prints (x, y)
45+
println(point1) // prints (2, 3)
4646
```
4747

4848
This `Point` class has four members: the variables `x` and `y` and the methods `move` and

0 commit comments

Comments
 (0)