From e40b23c619bacf92d3ebd2ea5cf5d49508947cb2 Mon Sep 17 00:00:00 2001 From: Gwen <50772474+SGiygas@users.noreply.github.com> Date: Sat, 30 Dec 2023 19:13:58 +0100 Subject: [PATCH] Correct C# syntax in _validate_property example for the Object class --- doc/classes/Object.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/Object.xml b/doc/classes/Object.xml index 2ffb02096da..e4f4d7682b9 100644 --- a/doc/classes/Object.xml +++ b/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; } }