From 255e3cdd4058ebbd7df1df3efd580f4fd3e05c93 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 24 Dec 2019 16:07:25 -0800 Subject: [PATCH] doc,wasi: use code markup/markdown in headers PR-URL: https://github.com/nodejs/node/pull/31086 Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater --- doc/api/wasi.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/wasi.md b/doc/api/wasi.md index ab994e498305d1..c573ffb3d8b202 100644 --- a/doc/api/wasi.md +++ b/doc/api/wasi.md @@ -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` @@ -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])` @@ -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)` @@ -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`