浏览代码

Correct C# syntax in _validate_property example for the Object class

Gwen 1 年之前
父节点
当前提交
e40b23c619
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      doc/classes/Object.xml

+ 1 - 1
doc/classes/Object.xml

@@ -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;
 				        }
 				    }