From 0f7df72f9f69653cad61d9153c9309375cb0b568 Mon Sep 17 00:00:00 2001 From: Dennis Date: Thu, 11 Jun 2020 13:52:47 -0700 Subject: [PATCH] Update classes.md Add space to either side of the named parameter. --- _tour/classes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/classes.md b/_tour/classes.md index 4b32c78aee..a8b9dce173 100644 --- a/_tour/classes.md +++ b/_tour/classes.md @@ -61,7 +61,7 @@ println(point1.x) // prints 1 In this version of the `Point` class, `x` and `y` have the default value `0` so no arguments are required. However, because the constructor reads arguments left to right, if you just wanted to pass in a `y` value, you would need to name the parameter. ``` class Point(var x: Int = 0, var y: Int = 0) -val point2 = new Point(y=2) +val point2 = new Point(y = 2) println(point2.y) // prints 2 ```