| ... | @@ -52,7 +52,7 @@ pub const ULID = struct { | ... | @@ -52,7 +52,7 @@ pub const ULID = struct { |
| 52 | pub fn toString(self: ULID, alloc: std.mem.Allocator) !BaseType { | 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.ArrayList(u8).initCapacity(alloc, 26); |
| 54 | defer res.deinit(); | 54 | defer res.deinit(); |
| 55 | try res.writer().print("{}", .{self}); | 55 | try res.appendSlice(&self.bytes()); |
| 56 | return res.toOwnedSlice(); | 56 | return res.toOwnedSlice(); |
| 57 | } | 57 | } |
| 58 | | 58 | |