| ... | ... | @@ -1151,7 +1151,10 @@ pub fn allocPrint(allocator: *mem.Allocator, comptime fmt: []const u8, args: any |
| 1151 | 1151 | }; |
| 1152 | 1152 | } |
| 1153 | 1153 | |
| 1154 | | pub fn allocPrint0(allocator: *mem.Allocator, comptime fmt: []const u8, args: anytype) AllocPrintError![:0]u8 { |
| 1154 | /// Deprecated, use allocPrintZ |
| 1155 | pub const allocPrint0 = allocPrintZ; |
| 1156 | |
| 1157 | pub fn allocPrintZ(allocator: *mem.Allocator, comptime fmt: []const u8, args: anytype) AllocPrintError![:0]u8 { |
| 1155 | 1158 | const result = try allocPrint(allocator, fmt ++ "\x00", args); |
| 1156 | 1159 | return result[0 .. result.len - 1 :0]; |
| 1157 | 1160 | } |