Skip to content

Commit

Permalink
Adding webui.malloc() comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hassandraga authored Nov 16, 2024
1 parent c45c326 commit c571a0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/serve_a_folder/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ fn my_files_handler(filename: []const u8) ?[]const u8 {

// Generate header + body

// By allocating resources using webui.malloc()
// WebUI will automaticaly free the resources.
return content;
}

Expand Down

0 comments on commit c571a0b

Please sign in to comment.