diff --git a/_ja/tour/higher-order-functions.md b/_ja/tour/higher-order-functions.md index c96fead8b3..88d432aaf5 100644 --- a/_ja/tour/higher-order-functions.md +++ b/_ja/tour/higher-order-functions.md @@ -104,7 +104,7 @@ object SalaryRaiser { ```tut def urlBuilder(ssl: Boolean, domainName: String): (String, String) => String = { - val schema = if (ssl) "https://" else "https://" + val schema = if (ssl) "https://" else "http://" (endpoint: String, query: String) => s"$schema$domainName/$endpoint?$query" } diff --git a/_pl/tour/higher-order-functions.md b/_pl/tour/higher-order-functions.md index ee30c78856..644ab1d927 100644 --- a/_pl/tour/higher-order-functions.md +++ b/_pl/tour/higher-order-functions.md @@ -113,7 +113,7 @@ Oto przykład funkcji zwracającej inną funkcję. ```tut def urlBuilder(ssl: Boolean, domainName: String): (String, String) => String = { - val schema = if (ssl) "https://" else "https://" + val schema = if (ssl) "https://" else "http://" (endpoint: String, query: String) => s"$schema$domainName/$endpoint?$query" } diff --git a/_ru/tour/higher-order-functions.md b/_ru/tour/higher-order-functions.md index c6ebbe894f..6df55532e9 100644 --- a/_ru/tour/higher-order-functions.md +++ b/_ru/tour/higher-order-functions.md @@ -95,7 +95,7 @@ object SalaryRaiser { ```tut def urlBuilder(ssl: Boolean, domainName: String): (String, String) => String = { - val schema = if (ssl) "https://" else "https://" + val schema = if (ssl) "https://" else "http://" (endpoint: String, query: String) => s"$schema$domainName/$endpoint?$query" } diff --git a/_tour/higher-order-functions.md b/_tour/higher-order-functions.md index 5ca35b1b06..f080bb8350 100644 --- a/_tour/higher-order-functions.md +++ b/_tour/higher-order-functions.md @@ -113,7 +113,7 @@ of a method that returns a function. ```tut def urlBuilder(ssl: Boolean, domainName: String): (String, String) => String = { - val schema = if (ssl) "https://" else "https://" + val schema = if (ssl) "https://" else "http://" (endpoint: String, query: String) => s"$schema$domainName/$endpoint?$query" } diff --git a/_zh-cn/tour/higher-order-functions.md b/_zh-cn/tour/higher-order-functions.md index ad8386076a..b7a037c47f 100644 --- a/_zh-cn/tour/higher-order-functions.md +++ b/_zh-cn/tour/higher-order-functions.md @@ -91,7 +91,7 @@ object SalaryRaiser { ```tut def urlBuilder(ssl: Boolean, domainName: String): (String, String) => String = { - val schema = if (ssl) "https://" else "https://" + val schema = if (ssl) "https://" else "http://" (endpoint: String, query: String) => s"$schema$domainName/$endpoint?$query" }