Skip to content

Commit b4e513e

Browse files
authored
Merge pull request #91 from pl-semiotics/explainer-example-two-level-import
Fix example which used one-level imports in a core module type
2 parents 4d412d9 + 7caeccb commit b4e513e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

design/mvp/Explainer.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,14 +420,14 @@ module types always start with an empty type index space.
420420
(component $C
421421
(core type $C1 (module
422422
(type (func (param i32) (result i32)))
423-
(import "a" (func (type 0)))
424-
(export "b" (func (type 0)))
423+
(import "a" "b" (func (type 0)))
424+
(export "c" (func (type 0)))
425425
))
426426
(core type $F (func (param i32) (result i32)))
427427
(core type $C2 (module
428428
(alias outer 1 $F (type))
429-
(import "a" (func (type 0)))
430-
(export "b" (func (type 0)))
429+
(import "a" "b" (func (type 0)))
430+
(export "c" (func (type 0)))
431431
))
432432
)
433433
```

0 commit comments

Comments
 (0)