8000 Update classes.md · scala/docs.scala-lang@7a2a189 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a2a189

Browse files
authored
Update classes.md
Typo
1 parent b7bd13a commit 7a2a189

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
@@ -101,7 +101,7 @@ Constructors can have optional parameters by providing a default value like so:
101101
class Point(var x: Int = 0, var y: Int = 0)
102102

103103
val origin = new Point // x and y are both set to 0
104-
val point1 = new Point(1) // y is set to 0
104+
val point1 = new Point(1) // x is set to 0
105105
println(point1) // prints (1, 0)
106106
```
107107
{% endtab %}

0 commit comments

Comments
 (0)
0