From 2410814e916970672a837c2d67a5a0a3f927ca4b Mon Sep 17 00:00:00 2001 From: Emi Date: Sat, 8 Feb 2025 19:25:18 -0700 Subject: [PATCH] module: fix validation strings (thanks jacobly) Signed-off-by: Emi --- src/module.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module.zig b/src/module.zig index 8b37160e..4d945b59 100644 --- a/src/module.zig +++ b/src/module.zig @@ -301,7 +301,7 @@ pub fn Objects(options: ObjectsOptions, comptime T: type) type { /// Removes a tag on an object pub fn removeTag(objs: *@This(), id: ObjectID, comptime M: type, tag: ModuleTagEnum(M)) void { - _ = objs.validateAndUnpack(id, "setTag"); + _ = objs.validateAndUnpack(id, "removeTag"); const tagged = TaggedObject{ .object_id = id, .tag_hash = std.hash.Wyhash.hash(0, @tagName(tag)), @@ -321,7 +321,7 @@ pub fn Objects(options: ObjectsOptions, comptime T: type) type { /// Get an object's tag value, or null. pub fn getTag(objs: *@This(), id: ObjectID, comptime M: type, tag: ModuleTagEnum(M)) ?mach.ObjectID { - _ = objs.validateAndUnpack(id, "hasTag"); + _ = objs.validateAndUnpack(id, "getTag"); const tagged = TaggedObject{ .object_id = id, .tag_hash = std.hash.Wyhash.hash(0, @tagName(tag)),