Skip to content

Commit 873fb8e

Browse files
committed
Add 'file' output and fix a weird transition
1 parent 262cec0 commit 873fb8e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

component-model/src/design/why-component-model.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ Kinds of definitions include:
3838
for the complete list.
3939

4040
A core module usually corresponds to a single binary `.wasm` file.
41+
Here's what the `file` command outputs for a sample `.wasm` file:
42+
```console
43+
$ file adder.wasm
44+
adder.wasm: WebAssembly (wasm) binary module version 0x1 (MVP)
45+
```
4146
These modules can be run in the browser,
4247
or via a separate runtime such as [Wasmtime](https://wasmtime.dev/)
4348
or [WAMR](https://github.com/bytecodealliance/wasm-micro-runtime).
@@ -119,11 +124,11 @@ and cross-language interoperability.
119124
Conceptually, a component is a module that is restricted
120125
to interact only through its imported and exported functions.
121126
Compared to core modules, components also use a richer
122-
mechanism for expressing the types of functions.
127+
mechanism for expressing the types of functions: _interfaces_.
123128

124129
### Interfaces
125130

126-
These interfaces are expressed in a separate language called [WIT (Wasm Interface Type)](./wit.md).
131+
Interfaces are expressed in a separate language called [WIT (Wasm Interface Type)](./wit.md).
127132
[Interfaces](./wit.md#interfaces) contain definitions of _types_
128133
and type signatures for [_functions_](./wit.md#functions).
129134
The bit-level representations of types are specified by

0 commit comments

Comments
 (0)