authorgravatar for shritesh@shritesh.comShritesh Bhattarai <shritesh@shritesh.com> 2019-05-22 08:12:15-07:00
committergravatar for shritesh@shritesh.comShritesh Bhattarai <shritesh@shritesh.com> 2019-05-22 09:37:37-07:00
logb618a0b866edb546b33e6fdb540faeed06f0e8bd
tree5a503bc8c963b80b6326ece4741a94d2a328997d
parent9e65a144fa85eeadfacfdfc9a543116cdb95fdb5

doc: wasm: embedded->host


1 files changed, 1 insertions(+), 1 deletions(-)

doc/langref.html.in+1-1
...@@ -8969,7 +8969,7 @@ all your base are belong to us</code></pre>...@@ -8969,7 +8969,7 @@ all your base are belong to us</code></pre>
8969 <p>Zig supports building for WebAssembly out of the box. There is also a specialized {#syntax#}std.heap.wasm_allocator{#endsyntax#}8969 <p>Zig supports building for WebAssembly out of the box. There is also a specialized {#syntax#}std.heap.wasm_allocator{#endsyntax#}
8970 memory allocator for WebAssembly environments.</p>8970 memory allocator for WebAssembly environments.</p>
8971 {#header_open|Freestanding#}8971 {#header_open|Freestanding#}
8972 <p>For embedded environments like the web browser and nodejs, build as a library using the freestanding OS target.8972 <p>For host environments like the web browser and nodejs, build as a library using the freestanding OS target.
8973 Here's an example of running Zig code compiled to WebAssembly with nodejs.</p>8973 Here's an example of running Zig code compiled to WebAssembly with nodejs.</p>
8974 {#code_begin|lib|math#}8974 {#code_begin|lib|math#}
8975 {#target_wasm#}8975 {#target_wasm#}