From 3ab9cf710beb4679a5af4360cc88562eef733e19 Mon Sep 17 00:00:00 2001 From: kleonc <9283098+kleonc@users.noreply.github.com> Date: Wed, 1 Nov 2023 21:56:12 +0100 Subject: [PATCH] Fix incorrect C# example using `_GetConfigurationWarnings` --- tutorials/best_practices/godot_interfaces.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 {}; } }