Skip to content

Commit

Permalink
Correct C# syntax in _validate_property example for the Object class
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaCapra authored Dec 30, 2023
1 parent 13a0d6e commit e40b23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/classes/Object.xml
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
{
if (property["name"].AsStringName() == PropertyName.Number && IsNumberEditable)
{
var usage = property["usage"].As>PropertyUsageFlags<() | PropertyUsageFlags.ReadOnly;
var usage = property["usage"].As<PropertyUsageFlags>() | PropertyUsageFlags.ReadOnly;
property["usage"] = (int)usage;
}
}
Expand Down

0 comments on commit e40b23c

Please sign in to comment.