From 40c219eb3b487d5b5615e3dc856578d541bce404 Mon Sep 17 00:00:00 2001 From: Dongxu Wang Date: Tue, 23 Oct 2018 17:42:19 +0800 Subject: [PATCH] Fix issue#1189, remove the redundent spaces after the code block type word tut. --- _tour/default-parameter-values.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/default-parameter-values.md b/_tour/default-parameter-values.md index bd98bb6e91..20f701e03d 100644 --- a/_tour/default-parameter-values.md +++ b/_tour/default-parameter-values.md @@ -25,7 +25,7 @@ log("User not found", "WARNING") // prints WARNING: User not found The parameter `level` has a default value so it is optional. On the last line, the argument `"WARNING"` overrides the default argument `"INFO"`. Where you might do overloaded methods in Java, you can use methods with optional parameters to achieve the same effect. However, if the caller omits an argument, any following arguments must be named. -```tut +```tut class Point(val x: Double = 0, val y: Double = 0) val point1 = new Point(y = 1)