| author | |
| committer | |
| log | c624df0fa6ec796d40e125b817b938b61224e8fd |
| tree | 86cc39cefa4dd3cfc810e029470e59be5b553d0f |
| parent | 234e63d5a5061c63f79d5877650c1b1d80c58b89 |
| signature |
3 files changed, 3 insertions(+), 3 deletions(-)
README.md+1-1| ... | ... | @@ -3,7 +3,7 @@ |
| 3 | 3 |  |
| 4 | 4 | [](https://github.com/nektro/zig-ulid/blob/master/LICENSE) |
| 5 | 5 | [](https://github.com/sponsors/nektro) |
| 6 | [](https://ziglang.org/) | |
| 6 | [](https://ziglang.org/) | |
| 7 | 7 | [](https://github.com/nektro/zigmod) |
| 8 | 8 | |
| 9 | 9 | A binary implementation of ULID in Zig. |
base32.zig+1-1| ... | ... | @@ -6,7 +6,7 @@ const string = []const u8; |
| 6 | 6 | const alphabet = "0123456789ABCDEFGHJKMNPQRSTVWXYZ"; |
| 7 | 7 | |
| 8 | 8 | pub 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); | |
| 10 | 10 | errdefer list.deinit(); |
| 11 | 11 | |
| 12 | 12 | for (input) |c| { |
ulid.zig+1-1| ... | ... | @@ -50,7 +50,7 @@ pub const ULID = struct { |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | 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); | |
| 54 | 54 | defer res.deinit(); |
| 55 | 55 | try res.appendSlice(&self.bytes()); |
| 56 | 56 | return res.toOwnedSlice(); |