Skip to content

Commit 2128ce6

Browse files
authored
Update 06_Declarations.md
#1195
1 parent 69c79b8 commit 2128ce6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/03_language_reference/06_Declarations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,8 @@ _ : 参数类型
528528
func f(x: Int = 42) -> Int { return x }
529529

530530
f() // 有效,使用默认值
531-
f(7) // 有效,提供了值
532-
f(x: 7) // 无效,该参数没有外部名称
531+
f(x: 7) // 有效,使用传入的值
532+
f(7) // 无效,缺少参数标签
533533
```
534534

535535
### 特殊方法 {#special-kinds-of-methods}

0 commit comments

Comments
 (0)