From 8654ad8310b7eb8466feb52f564ca7be02626e3a Mon Sep 17 00:00:00 2001 From: renerocksai Date: Sat, 29 Mar 2025 09:25:46 +0100 Subject: [PATCH] Improve code comment in router.zig --- src/router.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/router.zig b/src/router.zig index f13d0a9..9b99453 100644 --- a/src/router.zig +++ b/src/router.zig @@ -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;