From 7ea96d2817fb27d58d9f07f1b97f99a70be1e914 Mon Sep 17 00:00:00 2001 From: Eshaan Date: Mon, 1 Dec 2025 13:08:19 +1100 Subject: [PATCH] Doc: Add missing func keyword to EditorDock._update_layout example The code snippet demonstrating method overriding for _update_layout was missing the func keyword, which is required in GDScript method declarations. --- doc/classes/EditorDock.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/EditorDock.xml b/doc/classes/EditorDock.xml index 86457706cd2..2b1524cc3b7 100644 --- a/doc/classes/EditorDock.xml +++ b/doc/classes/EditorDock.xml @@ -56,7 +56,7 @@ Implement this method to handle the layout switching for this dock. [param layout] is one of the [enum DockLayout] constants. [codeblock] - _update_layout(layout): + func _update_layout(layout): box_container.vertical = (layout == DOCK_LAYOUT_VERTICAL) [/codeblock]