Skip to content

Commit

Permalink
fix: change const to var on algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
fjebaker committed Sep 25, 2024
1 parent 016d575 commit 69a8ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unicode.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 69a8ef1

Please sign in to comment.