Skip to content

Commit

Permalink
Update kotlin-tour-functions.md
Browse files Browse the repository at this point in the history
Remove Default argument

The Default argument is used here is confusing because it is explained in the next heading
  • Loading branch information
HiroVodka authored and sarahhaggarty committed Oct 26, 2023
1 parent 1df36d6 commit 1a8e4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/topics/tour/kotlin-tour-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit 1a8e4b0

Please sign in to comment.