Skip to content

Commit bdacbb1

Browse files
committed
循环加载处,even( )被错写为foo( )
1 parent a34e637 commit bdacbb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ true
665665
17
666666
```
667667

668-
上面代码中,参数`n`从10变为0的过程中,`foo()`一共会执行6次,所以变量`counter`等于6。第二次调用`even()`时,参数`n`从20变为0,`foo()`一共会执行11次,加上前面的6次,所以变量`counter`等于17。
668+
上面代码中,参数`n`从10变为0的过程中,`even()`一共会执行6次,所以变量`counter`等于6。第二次调用`even()`时,参数`n`从20变为0,`even()`一共会执行11次,加上前面的6次,所以变量`counter`等于17。
669669

670670
这个例子要是改写成CommonJS,就根本无法执行,会报错。
671671

0 commit comments

Comments
 (0)