Skip to content

Commit

Permalink
fix: ascott18/TellMeWhen#2088 UnitName can rarely return nil on a val…
Browse files Browse the repository at this point in the history
…id unit
  • Loading branch information
ascott18 committed Sep 8, 2024
1 parent fc9ba7a commit 7a2e432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Categories/Characteristics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ DogTag:AddTag("Unit", "SimpleName", {
arg = {
'unit', 'string;undef', 'player'
},
ret = "string",
ret = "string;nil",
events = "UNIT_NAME_UPDATE#$unit",
doc = L["Return the name of unit"],
example = ('[SimpleName] => %q'):format(UnitName("player")),
Expand Down

0 comments on commit 7a2e432

Please sign in to comment.