Skip to content

Commit f87ef85

Browse files
committed
Fix the use of an invalid text block declaration w/ a more appropriate one LeanPub allows
1 parent 4456da6 commit f87ef85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manuscript/11-Modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ import { identifier1, identifier2 } from "module";
8080

8181
The curly braces after `import` indicate the identifiers to import from the given module. The keyword `from` is used to indicate the module from which to import the given identifiers. The module is specified using a string. At the time of my writing, it is still undecided what module identifiers will look like. They may end up being full file paths (such as "../mymodule.js"), file paths without extensions (such as "../mymodule"), or something else. This likely won't be determined until browsers and Node.js begin implementing modules natively.
8282

83-
N> Even though it looks similar, the list of identifiers to import is not a destructured object.
83+
I> Even though it looks similar, the list of identifiers to import is not a destructured object.
8484

8585
When importing an identifier from a module, the identifier acts as if were defined using `let`. That means you cannot define another variable with the same name nor can you use the identifier prior to the `import` statement.
8686

0 commit comments

Comments
 (0)