diff --git a/README.md b/README.md index 487a4b4..5af2669 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,11 @@ try zla.call(void, "hello", .{"World"}); try zla.call(void, "hello", .{"..."}); ``` +**Call lua directly** +```zig +const val = try zla.exec(i64, "return 6 * 9"); +``` + **Call function from lua** ```zig try zla.call(void, "hello", .{"World"}); @@ -22,7 +27,7 @@ try zla.call(void, "hello", .{"World"}); **Call function from lua with return type** ```zig -const coords = try zl.call( +const coords = try zla.call( struct { f64, f64 }, "getCoords", .{},