Skip to content

Commit 2a8f34a

Browse files
author
Zhihao.Chen
committed
Fix import without binding syntax
1 parent 856a5eb commit 2a8f34a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manuscript/14-Modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ Array.prototype.pushAll = function(items) {
314314
This is a valid module even though there are no exports or imports. This code can be used both as a module and a script. Since it doesn't export anything, you can use a simplified import to execute the module code without importing any bindings:
315315

316316
```js
317-
import from "example";
317+
import "example";
318318

319319
let colors = ["red", "green", "blue"];
320320
let items = [];

0 commit comments

Comments
 (0)