Skip to content

Commit

Permalink
Update kotlin.md (#2096)
Browse files Browse the repository at this point in the history
Added return type on method.

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
  • Loading branch information
spijkermenno and rstacruz committed Mar 29, 2024
1 parent a7b5dbe commit 4b05ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kotlin.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ val four = 2.timesTwo()
### Default Parameters

```kotlin
fun getGreeting(person: Person, intro: String = "Hello,") {
fun getGreeting(person: Person, intro: String = "Hello,"): String {
return "$intro ${person.name}"
}

Expand Down

0 comments on commit 4b05ba3

Please sign in to comment.