update README that main should return !u8
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m43s

This commit is contained in:
Emil Lerch 2023-10-23 12:55:28 -07:00
parent 47e4b0d54c
commit 29687e1440
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -82,10 +82,10 @@ follow this signature:
pub fn handler(allocator: std.mem.Allocator, event_data: []const u8, context: universal_lambda.Context) ![]const u8
```
Let the package know about your handler in your main function, like so:
Your main function should return `!u8`. Let the package know about your handler in your main function, like so:
```zig
try universal_lambda.run(null, handler);
return try universal_lambda.run(null, handler);
```
The first parameter above is an allocator. If you have a specific handler you