Skip to content

Commit 9160060

Browse files
authored
minor readme.md improvements (karlseguin#113)
thanks
1 parent 0ce9038 commit 9160060

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ If your handler has a public `uncaughtError` method, it will be called whenever
222222

223223
```zig
224224
const App = struct {
225-
pub fn uncaughtError(self: *App, _: *Request, res: *Response, err: anyerror) void {
225+
pub fn uncaughtError(_: *App, req: *httpz.Request, res: *httpz.Response, err: anyerror) void {
226226
std.log.info("500 {} {s} {}", .{req.method, req.url.path, err});
227227
res.status = 500;
228228
res.body = "sorry";
@@ -237,7 +237,7 @@ For the most control, you can define a `handle` method. This circumvents most of
237237

238238
```zig
239239
const App = struct {
240-
pub fn handle(app: *App, req: *Request, res: *Response) void {
240+
pub fn handle(app: *App, req: *httpz.Request, res: *httpz.Response) void {
241241
// todo
242242
}
243243
};

0 commit comments

Comments
 (0)