diff --git a/examples/hello_json/hello_json.zig b/examples/hello_json/hello_json.zig index 42640ce..cdbc51f 100644 --- a/examples/hello_json/hello_json.zig +++ b/examples/hello_json/hello_json.zig @@ -7,7 +7,7 @@ const User = struct { }; fn on_request(r: zap.Request) void { - if (r.method.? != .GET) return; + if (r.method != .GET) return; // /user/n if (r.path) |the_path| {