1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-02 16:48:55 +00:00

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.
This commit is contained in:
Eshaan
2025-12-01 13:08:19 +11:00
parent 7ed0b61676
commit 7ea96d2817

View File

@@ -56,7 +56,7 @@
<description> <description>
Implement this method to handle the layout switching for this dock. [param layout] is one of the [enum DockLayout] constants. Implement this method to handle the layout switching for this dock. [param layout] is one of the [enum DockLayout] constants.
[codeblock] [codeblock]
_update_layout(layout): func _update_layout(layout):
box_container.vertical = (layout == DOCK_LAYOUT_VERTICAL) box_container.vertical = (layout == DOCK_LAYOUT_VERTICAL)
[/codeblock] [/codeblock]
</description> </description>