Skip to content

Commit 253eab6

Browse files
authored
Merge pull request #50 from dicej/patch-1
clarify inline sugar syntax in Explainer.md
2 parents b18994c + 03af667 commit 253eab6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

design/mvp/Explainer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ inner `func` doesn't need a `core` prefix; the `core` token is used to mark the
8080
*transition* from parsing component definitions into core definitions.
8181

8282
The [`core:module`] production is unmodified by the Component Model and thus
83-
components embed Core WebAssemby (text and binary format) modules as currently
83+
components embed Core WebAssembly (text and binary format) modules as currently
8484
standardized, allowing reuse of an unmodified Core WebAssembly implementation.
8585
The next two productions, `core:instance` and `core:alias`, are not currently
8686
included in Core WebAssembly, but would be if Core WebAssembly adopted the
@@ -265,7 +265,7 @@ via some kind of "`stateful`" type attribute.)
265265
Both kinds of aliases come with syntactic sugar for implicitly declaring them
266266
inline:
267267

268-
For `export` aliases, the inline sugar has the form `(sort <instanceidx> <name>+)`
268+
For `export` aliases, the inline sugar has the form `(<sort> <instanceidx> <name>+)`
269269
and can be used in place of a `sortidx` or any sort-specific index (such as a
270270
`typeidx` or `funcidx`). For example, the following snippet uses two inline
271271
function aliases:
@@ -885,7 +885,7 @@ modules and components to be distinguished by the first 8 bytes of the binary
885885
(splitting the 32-bit [`core:version`] field into a 16-bit `version` field and
886886
a 16-bit `layer` field with `0` for modules and `1` for components).
887887

888-
Once compiled, a `WebAssemby.Component` could be instantiated using the
888+
Once compiled, a `WebAssembly.Component` could be instantiated using the
889889
existing JS API `WebAssembly.instantiate(Streaming)`. Since components have the
890890
same basic import/export structure as modules, this mostly just means extending
891891
the [*read the imports*] logic to support single-level imports as well as

0 commit comments

Comments
 (0)