diff --git a/tutorials/plugins/editor/making_plugins.rst b/tutorials/plugins/editor/making_plugins.rst index 58b8bbd17f4..30761fdd2a5 100644 --- a/tutorials/plugins/editor/making_plugins.rst +++ b/tutorials/plugins/editor/making_plugins.rst @@ -346,11 +346,11 @@ The script could look like this: public override void _EnterTree() { - var _dock_scene = GD.Load("res://addons/MyCustomDock/MyDock.tscn").Instantiate(); + var dockScene = GD.Load("res://addons/MyCustomDock/MyDock.tscn").Instantiate(); // Create the dock and add the loaded scene to it. _dock = new EditorDock(); - _dock.AddChild(dock_scene); + _dock.AddChild(dockScene); _dock.Title = "My Dock";