mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 15:14:08 +00:00
Merge pull request #161 from unorsk/fix-readme-example
Fix hello world example in README.md
This commit is contained in:
commit
f7cf3dd39f
1 changed files with 1 additions and 1 deletions
|
@ -376,7 +376,7 @@ $ zig build run-routes
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const zap = @import("zap");
|
const zap = @import("zap");
|
||||||
|
|
||||||
fn on_request(r: zap.Request) void {
|
fn on_request(r: zap.Request) !void {
|
||||||
if (r.path) |the_path| {
|
if (r.path) |the_path| {
|
||||||
std.debug.print("PATH: {s}\n", .{the_path});
|
std.debug.print("PATH: {s}\n", .{the_path});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue