Skip to content

Commit

Permalink
docs(module-loader): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Dec 10, 2017
1 parent 41efa95 commit 465b825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/generator-async.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Thunk 函数早在上个世纪 60 年代就诞生了。
```javascript
var x = 1;

function f(m){
function f(m) {
return m * 2;
}

Expand Down
2 changes: 1 addition & 1 deletion docs/module-loader.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ console.log(es_namespace.default);
// { bar:'my-default' }
```

上面代码中,`default`接口变成了`es_namespace.default`属性。另外,由于存在缓存机制,`es.js``foo`的重新赋值没有在模块外部反映出来。
上面代码中,`default`接口变成了`es_namespace.default`属性。另外,由于存在缓存机制,`es.mjs``foo`的重新赋值没有在模块外部反映出来。

下面是另一个例子。

Expand Down

0 comments on commit 465b825

Please sign in to comment.