Skip to content

Commit 53928f3

Browse files
committed
fixed naming consisency
1 parent 1d7b1f4 commit 53928f3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
exports: { memory, _draw, allocUint8, free },
5353
} = await WebAssembly.instantiate(module, {
5454
app: {
55-
_promptName(pointer, length) {
55+
_allocPromptName(pointer, length) {
5656
const message = decodeString(pointer, length)
5757

5858
const name = window.prompt(message) ?? "Human"

index.wasm

10 Bytes
Binary file not shown.

index.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ const allocator = std.heap.page_allocator;
66
const env = @import("env.zig");
77
const ctx = @import("canvas.zig");
88

9-
extern "app" fn _promptName(
9+
extern "app" fn _allocPromptName(
1010
messsage_pointer: [*]const u8,
1111
message_length: u32,
1212
) [*:0]u8;
1313
fn allocPromptName(message: []const u8) []const u8 {
14-
const name_pointer = _promptName(message.ptr, message.len);
14+
const name_pointer = _allocPromptName(message.ptr, message.len);
1515
return std.mem.span(name_pointer);
1616
}
1717

0 commit comments

Comments
 (0)