Skip to content

Commit

Permalink
module: fix validation strings (thanks jacobly)
Browse files Browse the repository at this point in the history
Signed-off-by: Emi <[email protected]>
  • Loading branch information
emidoots committed Feb 9, 2025
1 parent 17a830f commit 2410814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand All @@ -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)),
Expand Down

0 comments on commit 2410814

Please sign in to comment.