Skip to content

Commit

Permalink
doc: update docs/kotlin.md (jaywcjlove#482)
Browse files Browse the repository at this point in the history
* doc: update

* fix: kotlin 方法默认参数指定其类型;

---------

Co-authored-by: 小弟调调™ <[email protected]>
  • Loading branch information
greyhao and jaywcjlove authored Dec 11, 2023
1 parent ab0d82e commit c278fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/kotlin.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ fun main() {
### 默认参数

```kotlin
fun favoriteLanguage(name, language = "Kotlin") {
fun favoriteLanguage(name: String, language: String = "Kotlin") {
println("Hello, $name. Your favorite programming language is $language")
}

Expand Down

0 comments on commit c278fb2

Please sign in to comment.