mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +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:
parent
7ed0b61676
commit
7ea96d2817
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@
|
|||
<description>
|
||||
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]
|
||||
</description>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue