Skip to content

Commit 13b778b

Browse files
committed
readme: ziglua -> lua_wrapper in build.zig changes
1 parent cd706e9 commit 13b778b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

readme.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ pub fn build(b: *std.Build) void {
5353
5454
// ... snip ...
5555
56-
// add the ziglua module and lua artifact
57-
exe.root_module.addImport("ziglua", lua_dep.module("ziglua"));
56+
// add the lua_wrapper module and lua artifact
57+
exe.root_module.addImport("lua_wrapper", lua_dep.module("lua_wrapper"));
5858
5959
}
6060
```
@@ -70,21 +70,21 @@ There are currently three additional options that can be passed to `b.dependency
7070
For example, here is a `b.dependency()` call that and links against a shared Lua 5.2 library:
7171

7272
```zig
73-
const ziglua = b.dependency("lua_wrapper", .{
73+
const lua_wrapper = b.dependency("lua_wrapper", .{
7474
.target = target,
7575
.optimize = optimize,
7676
.lang = .lua52,
7777
.shared = true,
7878
});
7979
``````
8080
81-
The `ziglua` module will now be available in your code. Here is a simple example that pushes and inspects an integer on the Lua stack:
81+
The `lua_wrapper` module will now be available in your code. Here is a simple example that pushes and inspects an integer on the Lua stack:
8282
8383
```zig
8484
const std = @import("std");
85-
const ziglua = @import("ziglua");
85+
const lua_wrapper = @import("lua_wrapper");
8686
87-
const Lua = ziglua.Lua;
87+
const Lua = lua_wrapper.Lua;
8888
8989
pub fn main() anyerror!void {
9090
// Create an allocator

0 commit comments

Comments
 (0)