Skip to content

Commit 00a296a

Browse files
committed
Fix incorrect C# example using _GetConfigurationWarnings
1 parent 56d0a58 commit 00a296a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tutorials/best_practices/godot_interfaces.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,13 @@ access.
108108
};
109109

110110
// Warn users if the value hasn't been set.
111-
public String _GetConfigurationWarnings()
111+
public string[] _GetConfigurationWarnings()
112112
{
113113
if (EnemyScn == null)
114-
return "Must initialize property 'EnemyScn'.";
115-
return "";
114+
{
115+
return new string[] { "Must initialize property 'EnemyScn'." };
116+
}
117+
return Array.Empty<string>();
116118
}
117119
}
118120

0 commit comments

Comments
 (0)