diff --git a/lib/preludes/raylib-zig-prelude.zig b/lib/preludes/raylib-zig-prelude.zig index 6722355..ebbe6f6 100755 --- a/lib/preludes/raylib-zig-prelude.zig +++ b/lib/preludes/raylib-zig-prelude.zig @@ -1296,7 +1296,7 @@ pub fn loadCodepoints(text: [:0]const u8) []i32 { } pub fn textFormat(text: [:0]const u8, args: anytype) [:0]const u8 { - return std.mem.span(@call(.{}, cdef.TextFormat, .{@as([*c]const u8, @ptrCast(text))} ++ args)); + return std.mem.span(@call(.auto, cdef.TextFormat, .{@as([*c]const u8, @ptrCast(text))} ++ args)); } pub fn textSplit(text: [:0]const u8, delimiter: u8) [][:0]const u8 { diff --git a/lib/raylib-zig.zig b/lib/raylib-zig.zig index dd8054c..009981f 100644 --- a/lib/raylib-zig.zig +++ b/lib/raylib-zig.zig @@ -1296,7 +1296,7 @@ pub fn loadCodepoints(text: [:0]const u8) []i32 { } pub fn textFormat(text: [:0]const u8, args: anytype) [:0]const u8 { - return std.mem.span(@call(.{}, cdef.TextFormat, .{@as([*c]const u8, @ptrCast(text))} ++ args)); + return std.mem.span(@call(.auto, cdef.TextFormat, .{@as([*c]const u8, @ptrCast(text))} ++ args)); } pub fn textSplit(text: [:0]const u8, delimiter: u8) [][:0]const u8 {