frmdstryr / zhp

A Http server written in Zig
MIT License
355 stars 24 forks source link

Example in README.md causes a compilation error #24

Closed MarcusWagberg closed 2 years ago

MarcusWagberg commented 2 years ago

line 20 in the example (line 63 in the README.md) currently reads: web.Middleware.create(web.middleware.LoggingMiddleware);

But this causes a compilation error: example.zig:20:60: error: expected ',', found ';'

To fix this compilation error line 20 in the example should be changed to: web.Middleware.create(web.middleware.LoggingMiddleware),

frmdstryr commented 2 years ago

Thanks for pointing it out. Can you do a pull request?