authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2021-12-24 11:43:01 -08:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2021-12-24 11:43:01 -08:00
logab852cf74fa0b4edc530d925f0654b62c60365bf
treeb2f6e9cdab1f317a513f497e3fc468970ae595cf
parent8e9f827117ab1418578b692a2325754cc3ee692d
parent6d37f6ee64a30ba211aa09cda384c0d6647812ab
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #1 from cursey/allocator-fixes

Fix for Zig std.mem.Allocator changes

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

src/lib.zig+1-1
...@@ -15,7 +15,7 @@ const range = @import("range").range;...@@ -15,7 +15,7 @@ const range = @import("range").range;
15// );15// );
16// }16// }
1717
18pub fn leven(comptime T: type, alloc: *std.mem.Allocator, a: []const T, b: []const T, max: ?usize) !usize {18pub fn leven(comptime T: type, alloc: std.mem.Allocator, a: []const T, b: []const T, max: ?usize) !usize {
19 if (std.mem.eql(T, a, b)) return 0;19 if (std.mem.eql(T, a, b)) return 0;
2020
21 var left = a;21 var left = a;