Skip to content

Commit 2410814

Browse files
committed
module: fix validation strings (thanks jacobly)
Signed-off-by: Emi <[email protected]>
1 parent 17a830f commit 2410814

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/module.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ pub fn Objects(options: ObjectsOptions, comptime T: type) type {
301301

302302
/// Removes a tag on an object
303303
pub fn removeTag(objs: *@This(), id: ObjectID, comptime M: type, tag: ModuleTagEnum(M)) void {
304-
_ = objs.validateAndUnpack(id, "setTag");
304+
_ = objs.validateAndUnpack(id, "removeTag");
305305
const tagged = TaggedObject{
306306
.object_id = id,
307307
.tag_hash = std.hash.Wyhash.hash(0, @tagName(tag)),
@@ -321,7 +321,7 @@ pub fn Objects(options: ObjectsOptions, comptime T: type) type {
321321

322322
/// Get an object's tag value, or null.
323323
pub fn getTag(objs: *@This(), id: ObjectID, comptime M: type, tag: ModuleTagEnum(M)) ?mach.ObjectID {
324-
_ = objs.validateAndUnpack(id, "hasTag");
324+
_ = objs.validateAndUnpack(id, "getTag");
325325
const tagged = TaggedObject{
326326
.object_id = id,
327327
.tag_hash = std.hash.Wyhash.hash(0, @tagName(tag)),

0 commit comments

Comments
 (0)