From b618a0b866edb546b33e6fdb540faeed06f0e8bd Mon Sep 17 00:00:00 2001 From: Shritesh Bhattarai Date: Wed, 22 May 2019 08:12:15 -0700 Subject: [PATCH] doc: wasm: embedded->host --- doc/langref.html.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index ec1a93433b..67e803d5b0 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -8969,7 +8969,7 @@ all your base are belong to us

Zig supports building for WebAssembly out of the box. There is also a specialized {#syntax#}std.heap.wasm_allocator{#endsyntax#} memory allocator for WebAssembly environments.

{#header_open|Freestanding#} -

For embedded environments like the web browser and nodejs, build as a library using the freestanding OS target. +

For host environments like the web browser and nodejs, build as a library using the freestanding OS target. Here's an example of running Zig code compiled to WebAssembly with nodejs.

{#code_begin|lib|math#} {#target_wasm#}