From 7a2a18927a1efc5dd46321cb993b11de998cbcef Mon Sep 17 00:00:00 2001 From: Raul Estrada Date: Thu, 28 Jul 2022 12:58:16 -0500 Subject: [PATCH] Update classes.md Typo --- _tour/classes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/classes.md b/_tour/classes.md index 79b04b5c37..c3a42fabd8 100644 --- a/_tour/classes.md +++ b/_tour/classes.md @@ -101,7 +101,7 @@ Constructors can have optional parameters by providing a default value like so: class Point(var x: Int = 0, var y: Int = 0) val origin = new Point // x and y are both set to 0 -val point1 = new Point(1) // y is set to 0 +val point1 = new Point(1) // x is set to 0 println(point1) // prints (1, 0) ``` {% endtab %}