Skip to content

Commit

Permalink
doc,wasi: use code markup/markdown in headers
Browse files Browse the repository at this point in the history
PR-URL: #31086
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
Trott authored and targos committed Jan 14, 2020
1 parent e815655 commit c51153c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/api/wasi.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
The `--experimental-wasi-unstable-preview1` and `--experimental-wasm-bigint`
CLI arguments are needed for the previous example to run.

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

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

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

### wasi.wasiImport
### `wasi.wasiImport`
<!-- YAML
added: REPLACEME
-->
Expand Down

0 comments on commit c51153c

Please sign in to comment.