authorgravatar for shritesh@shritesh.comShritesh Bhattarai <shritesh@shritesh.com> 2019-05-22 07:43:12-07:00
committergravatar for shritesh@shritesh.comShritesh Bhattarai <shritesh@shritesh.com> 2019-05-22 07:43:17-07:00
log9e65a144fa85eeadfacfdfc9a543116cdb95fdb5
tree615eaa41986beee94e2beced4f4acd3233619081
parent3b6fc3fdc7618502a9338c4266c4d1aa1ad94bf3

docs: clarify why wasm_allocator should be used


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

doc/langref.html.in+1-1
...@@ -8435,7 +8435,7 @@ fn concat(allocator: *Allocator, a: []const u8, b: []const u8) ![]u8 {...@@ -8435,7 +8435,7 @@ fn concat(allocator: *Allocator, a: []const u8, b: []const u8) ![]u8 {
8435 <li>Are you linking libc? In this case, {#syntax#}std.heap.c_allocator{#endsyntax#} is likely8435 <li>Are you linking libc? In this case, {#syntax#}std.heap.c_allocator{#endsyntax#} is likely
8436 the right choice, at least for your main allocator.</li>8436 the right choice, at least for your main allocator.</li>
8437 <li>Are you building for WebAssembly? In this case, {#syntax#}std.heap.wasm_allocator{#endsyntax#} is likely8437 <li>Are you building for WebAssembly? In this case, {#syntax#}std.heap.wasm_allocator{#endsyntax#} is likely
8438 the only possible choice for your main allocator.</li>8438 the right choice for your main allocator as it uses WebAssembly's memory instructions.</li>
8439 <li>8439 <li>
8440 Is the maximum number of bytes that you will need bounded by a number known at8440 Is the maximum number of bytes that you will need bounded by a number known at
8441 {#link|comptime#}? In this case, use {#syntax#}std.heap.FixedBufferAllocator{#endsyntax#} or8441 {#link|comptime#}? In this case, use {#syntax#}std.heap.FixedBufferAllocator{#endsyntax#} or