From 4ce891a8ce5336da39180964792110e131756cdd Mon Sep 17 00:00:00 2001 From: Jose Colon Rodriguez Date: Wed, 27 Mar 2024 21:52:02 -0400 Subject: ScriptsData and made all Datas const --- src/NumericData.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/NumericData.zig') diff --git a/src/NumericData.zig b/src/NumericData.zig index baf8f11..210d623 100644 --- a/src/NumericData.zig +++ b/src/NumericData.zig @@ -33,7 +33,7 @@ pub fn init(allocator: mem.Allocator) !Self { return self; } -pub fn deinit(self: *Self) void { +pub fn deinit(self: *const Self) void { self.allocator.free(self.s1); self.allocator.free(self.s2); } @@ -59,7 +59,7 @@ pub inline fn isDecimal(self: Self, cp: u21) bool { } test "isDecimal" { - var self = try init(testing.allocator); + const self = try init(testing.allocator); defer self.deinit(); try testing.expect(self.isNumber('\u{277f}')); -- cgit v1.2.3