diff --git a/Classes/Smart casts/task.md b/Classes/Smart casts/task.md index 2401ae9..337be69 100644 --- a/Classes/Smart casts/task.md +++ b/Classes/Smart casts/task.md @@ -1,7 +1,7 @@ ## Smart casts Rewrite the following Java code using [smart casts](https://kotlinlang.org/docs/typecasts.html#smart-casts) -and the [when](https://kotlinlang.org/docs/control-flow.html#when-expression) expression: +and the [when](https://kotlinlang.org/docs/control-flow.html#when-expressions-and-statements) expression: ```java public int eval(Expr expr) { diff --git a/Introduction/Default arguments/task.md b/Introduction/Default arguments/task.md index c64dc3d..58e236c 100644 --- a/Introduction/Default arguments/task.md +++ b/Introduction/Default arguments/task.md @@ -19,4 +19,4 @@ public String foo(String name) { You can replace all these Java overloads with one function in Kotlin. Change the declaration of the `foo` function in a way that makes the code using `foo` compile. -Use [default and named](https://kotlinlang.org/docs/functions.html#default-arguments) arguments. +Use [Parameters with default values](https://kotlinlang.org/docs/functions.html#parameters-with-default-values). diff --git a/Introduction/Named arguments/task.md b/Introduction/Named arguments/task.md index 5e1c901..f86f1df 100644 --- a/Introduction/Named arguments/task.md +++ b/Introduction/Named arguments/task.md @@ -3,8 +3,8 @@ Make the function `joinOptions()` return the list in a JSON format (for example, `[a, b, c]`) by specifying only two arguments. -[Default and named](https://kotlinlang.org/docs/functions.html#default-arguments) -arguments help to minimize the number of overloads and improve the readability of the function invocation. +[Named arguments](https://kotlinlang.org/docs/functions.html#named-arguments) and [Parameters with default values](https://kotlinlang.org/docs/functions.html#parameters-with-default-values) + help to minimize the number of overloads and improve the readability of the function invocation. The library function [`joinToString`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/join-to-string.html) is declared with default values for parameters: