Skip to content

Commit

Permalink
add missing pub for panic handler
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdin committed Sep 20, 2024
1 parent 5e3e1dc commit f5e2efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/recover.zig
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ inline fn setContext(ctx: *const Context) noreturn {

/// Panic handler that if there is a recover call in current thread continues
/// from recover call. Otherwise calls the default panic.
/// Install at root source file as `const panic = @import("recover").panic;`
/// Install at root source file as `pub const panic = @import("recover").panic;`
pub fn panic(
msg: []const u8,
error_return_trace: ?*std.builtin.StackTrace,
Expand Down

0 comments on commit f5e2efa

Please sign in to comment.