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#}