This commit is contained in:
krahets
2023-02-10 01:03:37 +08:00
parent 49d39ff871
commit 76dcc6cbd3
7 changed files with 265 additions and 71 deletions
+2 -2
View File
@@ -1179,7 +1179,7 @@ $$
const Self = @This();
// 构造函数
// 构造方法
pub fn init(self: *Self, allocator: std.mem.Allocator) !void {
self.mem_allocator = allocator;
// 初始化一个长度为 100 的桶(数组)
@@ -1190,7 +1190,7 @@ $$
}
}
// 析构函数
// 析构方法
pub fn deinit(self: *Self) void {
if (self.bucket != null) self.bucket.?.deinit();
}