File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
7070For 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
8484const 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
8989pub fn main() anyerror!void {
9090 // Create an allocator
You can’t perform that action at this time.
0 commit comments