diff --git a/src/unicode.zig b/src/unicode.zig index 8a8dd77..098387f 100644 --- a/src/unicode.zig +++ b/src/unicode.zig @@ -138,7 +138,7 @@ pub const Unicode = struct { max_needle: usize, opts: Options, ) !Unicode { - const alg = try Algorithm.init(allocator, max_haystack, max_needle, opts.scores); + var alg = try Algorithm.init(allocator, max_haystack, max_needle, opts.scores); errdefer alg.deinit(); var gcd = try GenCatData.init(allocator);