diff --git a/tutorials/best_practices/godot_interfaces.rst b/tutorials/best_practices/godot_interfaces.rst index eb082e112f91..9de5da64275d 100644 --- a/tutorials/best_practices/godot_interfaces.rst +++ b/tutorials/best_practices/godot_interfaces.rst @@ -108,11 +108,13 @@ access. }; // Warn users if the value hasn't been set. - public String _GetConfigurationWarnings() + public String[] _GetConfigurationWarnings() { if (EnemyScn == null) - return "Must initialize property 'EnemyScn'."; - return ""; + { + return { "Must initialize property 'EnemyScn'." }; + } + return {}; } }