glfw: README: update usage example

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-06-11 15:50:31 -07:00 committed by Stephen Gutekanst
parent 95d34e68ad
commit 05a2118ef5

View file

@ -59,7 +59,7 @@ const glfw = @import("libs/mach-glfw/build.zig");
pub fn build(b: *Builder) void { pub fn build(b: *Builder) void {
... ...
exe.addPackagePath("glfw", "libs/mach-glfw/src/main.zig"); exe.addPackage(glfw.pkg);
glfw.link(b, exe, .{}); glfw.link(b, exe, .{});
} }
``` ```