Skip to content

Commit 57cdc82

Browse files
committed
docs(function): fixed typo
1 parent d5e0f47 commit 57cdc82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/function.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ function f(x = 456) {
374374
return x;
375375
}
376376

377-
f2(undefined) // 456
377+
f(undefined) // 456
378378
```
379379

380380
具有默认值的参数如果不位于参数列表的末尾,调用时不能省略,如果要触发默认值,必须显式传入`undefined`

0 commit comments

Comments
 (0)