From d401574540bc5df46df5657b9658ef153ee09da6 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Mon, 15 Sep 2025 16:11:48 -0700 Subject: [PATCH] Refactor: Generalize module import example --- index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index adc14ac..ee283e9 100644 --- a/index.html +++ b/index.html @@ -252,10 +252,11 @@ active: !0 Modules are imported using the \`+\` and \`->\` operators. This allows for destructuring and aliasing of imported members. \`\`\`javascript -// Import 'sum' and 'multiply' (as 'mul') from a remote module -+ "npm://hi-lang@0.1/math/utils.hi" -> { sum, multiply: mul } +// Import 'block1' and 'block2' (as 'alias2') from a module ++ "hi-lang@0.1/path/file.hi" -> { block1, block2: alias2 } -sum(5, mul(2, 3)) // 11 +block1() +alias2("some value") \`\`\` ## Method Chaining