| author | |
| committer | |
| log | bfc5a70fee3b065f523ae5c4754867c497ce87ea |
| tree | c03adbcbb35e0e2aae0841065a550a80be15584b |
| parent | cc8fb7cb1654df835a48473d67c001a44d2a6ea9 |
1 files changed, 2 insertions(+), 2 deletions(-)
src/asciiUpper.zig+2-2| ... | ... | @@ -2,8 +2,8 @@ const std = @import("std"); |
| 2 | 2 | const string = []const u8; |
| 3 | 3 | const extras = @import("./lib.zig"); |
| 4 | 4 | |
| 5 | pub fn asciiUpper(alloc: std.mem.Allocator, input: string) ![]u8 { | |
| 6 | var buf = try alloc.dupe(u8, input); | |
| 5 | pub fn asciiUpper(alloc: std.mem.Allocator, input: string) ![:0]u8 { | |
| 6 | var buf = try alloc.dupeZ(u8, input); | |
| 7 | 7 | for (0..buf.len) |i| { |
| 8 | 8 | buf[i] = std.ascii.toUpper(buf[i]); |
| 9 | 9 | } |