Skip to content

Commit 7ea96d2

Browse files
committed
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.
1 parent 7ed0b61 commit 7ea96d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/classes/EditorDock.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<description>
5757
Implement this method to handle the layout switching for this dock. [param layout] is one of the [enum DockLayout] constants.
5858
[codeblock]
59-
_update_layout(layout):
59+
func _update_layout(layout):
6060
box_container.vertical = (layout == DOCK_LAYOUT_VERTICAL)
6161
[/codeblock]
6262
</description>

0 commit comments

Comments
 (0)