Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c51153c

Browse filesBrowse files
Trotttargos
authored andcommitted
doc,wasi: use code markup/markdown in headers
PR-URL: #31086 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent e815655 commit c51153c
Copy full SHA for c51153c

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/wasi.md‎

Copy file name to clipboardExpand all lines: doc/api/wasi.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.