1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 15:14:08 +00:00

Improve code comment in router.zig

This commit is contained in:
renerocksai 2025-03-29 09:25:46 +01:00
parent 8ecceba81e
commit 8654ad8310

View file

@ -45,6 +45,7 @@ pub fn deinit(self: *Router) void {
}
/// Call this to add a route with an unbound handler: a handler that is not member of a struct.
/// To be precise: a handler that doesn't take an instance pointer as first argument.
pub fn handle_func_unbound(self: *Router, path: []const u8, h: zap.HttpRequestFn) !void {
if (path.len == 0) {
return RouterError.EmptyPath;