authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-31 23:46:54 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-31 23:46:54 -07:00
logc624df0fa6ec796d40e125b817b938b61224e8fd
tree86cc39cefa4dd3cfc810e029470e59be5b553d0f
parent234e63d5a5061c63f79d5877650c1b1d80c58b89
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

update to zig 0.15.2


3 files changed, 3 insertions(+), 3 deletions(-)

README.md+1-1
......@@ -3,7 +3,7 @@
33![loc](https://sloc.xyz/github/nektro/zig-ulid)
44[![license](https://img.shields.io/github/license/nektro/zig-ulid.svg)](https://github.com/nektro/zig-ulid/blob/master/LICENSE)
55[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro)
6[![Zig](https://img.shields.io/badge/Zig-0.14-f7a41d)](https://ziglang.org/)
6[![Zig](https://img.shields.io/badge/Zig-0.15-f7a41d)](https://ziglang.org/)
77[![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod)
88
99A binary implementation of ULID in Zig.
base32.zig+1-1
......@@ -6,7 +6,7 @@ const string = []const u8;
66const alphabet = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
77
88pub fn decode(alloc: std.mem.Allocator, input: string) ![]const u5 {
9 var list = std.ArrayList(u5).init(alloc);
9 var list = std.array_list.Managed(u5).init(alloc);
1010 errdefer list.deinit();
1111
1212 for (input) |c| {
ulid.zig+1-1
......@@ -50,7 +50,7 @@ pub const ULID = struct {
5050 }
5151
5252 pub fn toString(self: ULID, alloc: std.mem.Allocator) !BaseType {
53 var res = try std.ArrayList(u8).initCapacity(alloc, 26);
53 var res = try std.array_list.Managed(u8).initCapacity(alloc, 26);
5454 defer res.deinit();
5555 try res.appendSlice(&self.bytes());
5656 return res.toOwnedSlice();