Skip to content

Commit 26516c1

Browse files
authored
Merge pull request godotengine#8375 from kleonc/get_configuration_warnings_csharp_example
Fix incorrect C# example using `_GetConfigurationWarnings`
2 parents 9ab8831 + 00a296a commit 26516c1

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)