fix: code example in README.md

This commit is contained in:
Jacob Stannix 2024-08-29 11:38:10 -06:00 committed by GitHub
parent 00fbce3fd1
commit 8003d9a98d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,10 +32,8 @@ zig fetch --save https://github.com/allyourcodebase/lua/archive/refs/tags/5.4.7.
then add the following to your `build.zig`
```zig
const lua_dep = b.dependency("lua", .{
.{
.target = target,
.release = optimize != .Debug,
}
.target = target,
.release = optimize != .Debug,
});
const lua_lib = lua_dep.artifact("lua");
```