Skip to content

Commit c571a0b

Browse files
authored
Adding webui.malloc() comments
1 parent c45c326 commit c571a0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/serve_a_folder/main.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ fn my_files_handler(filename: []const u8) ?[]const u8 {
124124

125125
// Generate header + body
126126

127+
// By allocating resources using webui.malloc()
128+
// WebUI will automaticaly free the resources.
127129
return content;
128130
}
129131

0 commit comments

Comments
 (0)