From 3ba9e3bc0de9b2b869760d8b329f76eb5dfacd97 Mon Sep 17 00:00:00 2001 From: kleonc <9283098+kleonc@users.noreply.github.com> Date: Wed, 1 Nov 2023 21:50:20 +0100 Subject: [PATCH] Fix incorrect C# example using `_GetConfigurationWarnings` --- tutorials/best_practices/godot_interfaces.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorials/best_practices/godot_interfaces.rst b/tutorials/best_practices/godot_interfaces.rst index eb082e112f91..ca3a8a7b6670 100644 --- a/tutorials/best_practices/godot_interfaces.rst +++ b/tutorials/best_practices/godot_interfaces.rst @@ -108,11 +108,11 @@ 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 { "" }; } }