From 0f757bfa34192b23f9729700fef467316ba2af46 Mon Sep 17 00:00:00 2001 From: David Gonzalez Martin Date: Mon, 19 Jun 2023 12:51:03 -0600 Subject: [PATCH] Fix README compile error. The byte slice required to be constant and it was giving a compile error. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 46de264..87f636a 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ There is also support for adding this project as a dependency through zig packag And then in your build.zig file, you'll need to add a line like this to your build function: ```zig const vkzig_dep = b.dependency("vulkan_zig", .{ - .registry = b.pathFromRoot("path/to/vk.xml"), + .registry = @as([]const u8, b.pathFromRoot("path/to/vk.xml")), }); const vkzig_bindings = vkzig_dep.module("vulkan-zig"); exe.addModule("vulkan-zig", vkzig_bindings);