Skip to content

Commit 9db4d80

Browse files
committed
Function pointers should be const
1 parent e3f3e78 commit 9db4d80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ pub const ExportTypeVec = extern struct {
584584
extern "c" fn wasm_exporttype_vec_delete(*ExportTypeVec) void;
585585
};
586586

587-
pub const Callback = *fn (?*const Valtype, ?*Valtype) callconv(.C) ?*Trap;
587+
pub const Callback = *const fn (?*const Valtype, ?*Valtype) callconv(.C) ?*Trap;
588588

589589
pub const ByteVec = extern struct {
590590
size: usize,

0 commit comments

Comments
 (0)