obj: Fix comment

This commit is contained in:
foxnne 2024-11-27 11:39:40 -06:00 committed by Emi Gutekanst
parent 319f2d8fb8
commit 863b1def16

View file

@ -68,8 +68,7 @@ pub fn Objects(options: ObjectsOptions, comptime T: type) type {
/// Global pointer to object relations graph /// Global pointer to object relations graph
graph: *Graph, graph: *Graph,
/// This is mach's way of determining which fields are updated and /// A bitset per-field used to track field changes. Only used if options.track_fields == true.
/// need to trigger some other logic
updated: ?std.ArrayListUnmanaged(std.bit_set.DynamicBitSetUnmanaged) = if (options.track_fields) .{} else null, updated: ?std.ArrayListUnmanaged(std.bit_set.DynamicBitSetUnmanaged) = if (options.track_fields) .{} else null,
}, },
@ -317,7 +316,7 @@ pub fn Objects(options: ObjectsOptions, comptime T: type) type {
return unpacked; return unpacked;
} }
/// Returns true if the field has an `updated` bit set in internal, then sets the bit /// Returns true if the field has an `updated` bit set in internal, after setting the bit
/// back to false. /// back to false.
pub fn updated(objs: *@This(), id: ObjectID, field_name: anytype) bool { pub fn updated(objs: *@This(), id: ObjectID, field_name: anytype) bool {
if (options.track_fields) { if (options.track_fields) {