Skip to content

Commit a7ea3cd

Browse files
twoethsspiral-ladder
authored andcommitted
fix: update docs
1 parent d4a468c commit a7ea3cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/state_transition/utils/ref_count.zig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ pub fn RefCount(comptime T: type) type {
1919
return ptr;
2020
}
2121

22-
/// private deinit, consumer should call release() instead
22+
/// private deinit, consumer should call unref() instead
2323
fn deinit(self: *@This()) void {
2424
self.instance.deinit();
2525
self.allocator.destroy(self);
2626
}
2727

28+
/// caution: this returns a copy of the instance, make sure this does not have copy overhead
29+
/// or use pointer type instead
2830
pub fn get(self: *@This()) T {
2931
return self.instance;
3032
}

0 commit comments

Comments
 (0)