Skip to content

Commit c51153c

Browse files
Trotttargos
authored andcommitted
doc,wasi: use code markup/markdown in headers
PR-URL: #31086 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent e815655 commit c51153c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/wasi.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
3232
The `--experimental-wasi-unstable-preview1` and `--experimental-wasm-bigint`
3333
CLI arguments are needed for the previous example to run.
3434

35-
## Class: WASI
35+
## Class: `WASI`
3636
<!-- YAML
3737
added: REPLACEME
3838
-->
@@ -43,7 +43,7 @@ represents a distinct sandbox environment. For security purposes, each `WASI`
4343
instance must have its command line arguments, environment variables, and
4444
sandbox directory structure configured explicitly.
4545

46-
### new WASI(\[options\])
46+
### `new WASI([options])`
4747
<!-- YAML
4848
added: REPLACEME
4949
-->
@@ -59,7 +59,7 @@ added: REPLACEME
5959
directories within the sandbox. The corresponding values in `preopens` are
6060
the real paths to those directories on the host machine.
6161

62-
### wasi.start(instance)
62+
### `wasi.start(instance)`
6363
<!-- YAML
6464
added: REPLACEME
6565
-->
@@ -74,7 +74,7 @@ is present on `instance`, then `start()` does nothing.
7474
`start()` requires that `instance` exports a [`WebAssembly.Memory`][] named
7575
`memory`. If `instance` does not have a `memory` export an exception is thrown.
7676

77-
### wasi.wasiImport
77+
### `wasi.wasiImport`
7878
<!-- YAML
7979
added: REPLACEME
8080
-->

0 commit comments

Comments
 (0)