Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Substitute `.addImport(..)` with `.root_module.addImport(..)` as the former seems to be gone.
  • Loading branch information
MilkywayPirate authored Aug 9, 2024
1 parent d7ad51c commit 543381c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const vkzig_dep = b.dependency("vulkan_zig", .{
.registry = @as([]const u8, b.pathFromRoot("path/to/vk.xml")),
});
const vkzig_bindings = vkzig_dep.module("vulkan-zig");
exe.addModule("vulkan", vkzig_bindings);
exe.root_module.addImport("vulkan", vkzig_bindings);
```
That will allow you to `@import("vulkan")` in your executable's source.

Expand Down

0 comments on commit 543381c

Please sign in to comment.