From 0eb3273f257e096c398ec324a1d2d755ec19a43d Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sat, 6 Jun 2026 16:03:05 +0200 Subject: make style-guide conform --- src/api/hello-param.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api/hello-param.zig') diff --git a/src/api/hello-param.zig b/src/api/hello-param.zig index ba798af..f4de1dd 100644 --- a/src/api/hello-param.zig +++ b/src/api/hello-param.zig @@ -8,7 +8,7 @@ pub const ctx: Ctx = .{ }; fn get(request: Ctx.Request) Response { - const value = request.params.value.as(usize) catch return .bad_request(.string("parameter needs to be an int")); + const value = request.params.value.as(usize) catch return .badRequest(.string("parameter needs to be an int")); - return .ok_or_error(.json(request.arena, .{ .value = value, })); + return .okOrError(.json(request.arena, .{ .value = value, })); } -- cgit v1.2.3-70-g09d2