From 1a8e4b0ce251b154249172b309902017ad48fffe Mon Sep 17 00:00:00 2001 From: HiroVodka <58872020+HiroVodka@users.noreply.github.com> Date: Thu, 26 Oct 2023 19:31:12 +0900 Subject: [PATCH] Update kotlin-tour-functions.md Remove Default argument The Default argument is used here is confusing because it is explained in the next heading --- docs/topics/tour/kotlin-tour-functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/tour/kotlin-tour-functions.md b/docs/topics/tour/kotlin-tour-functions.md index 89f74e2947f..faf60ce69f1 100644 --- a/docs/topics/tour/kotlin-tour-functions.md +++ b/docs/topics/tour/kotlin-tour-functions.md @@ -71,7 +71,7 @@ you can write the parameters in any order. {type="tip"} ```kotlin -fun printMessageWithPrefix(message: String, prefix: String = "Info") { +fun printMessageWithPrefix(message: String, prefix: String) { println("[$prefix] $message") }