mirror of
https://github.com/hi-language/hi-language.github.io.git
synced 2026-01-14 08:38:36 +00:00
Fix: Restore npm protocol specifier in import example
This commit is contained in:
@@ -253,7 +253,7 @@ Modules are imported using the \`+\` and \`->\` operators. This allows for destr
|
|||||||
|
|
||||||
\`\`\`javascript
|
\`\`\`javascript
|
||||||
// Import 'block1' and 'block2' (as 'alias2') from a module
|
// Import 'block1' and 'block2' (as 'alias2') from a module
|
||||||
+ "hi-lang@0.1/path/file.hi" -> { block1, block2: alias2 }
|
+ "npm://hi-lang@0.1/path/file.hi" -> { block1, block2: alias2 }
|
||||||
|
|
||||||
block1()
|
block1()
|
||||||
alias2("some value")
|
alias2("some value")
|
||||||
|
|||||||
Reference in New Issue
Block a user