| ... | @@ -7,8 +7,8 @@ const range = @import("range").range; | ... | @@ -7,8 +7,8 @@ const range = @import("range").range; |
| 7 | const alphabet = "0123456789ABCDEFGHJKMNPQRSTVWXYZ"; | 7 | const alphabet = "0123456789ABCDEFGHJKMNPQRSTVWXYZ"; |
| 8 | | 8 | |
| 9 | pub fn decode(alloc: std.mem.Allocator, input: string) ![]const u5 { | 9 | pub fn decode(alloc: std.mem.Allocator, input: string) ![]const u5 { |
| 10 | const list = &std.ArrayList(u5).init(alloc); | 10 | var list = std.ArrayList(u5).init(alloc); |
| 11 | defer list.deinit(); | 11 | errdefer list.deinit(); |
| 12 | | 12 | |
| 13 | for (input) |c| { | 13 | for (input) |c| { |
| 14 | for (alphabet) |d, i| { | 14 | for (alphabet) |d, i| { |