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

Update README.md

This commit is contained in:
andrii 2025-04-03 14:10:17 +02:00 committed by GitHub
parent 8078b96d3f
commit 47ecb13d7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -376,7 +376,7 @@ $ zig build run-routes
const std = @import("std");
const zap = @import("zap");
fn on_request(r: zap.Request) void {
fn on_request(r: zap.Request) !void {
if (r.path) |the_path| {
std.debug.print("PATH: {s}\n", .{the_path});
}