Skip to content

Commit c08a1a8

Browse files
Fix export annotation being formatted as Godot 3.
While browsing the docs, I noticed that there was a bit of code obviously misformatted for Godot 4. Fixed it, hopefully.
1 parent 25036f1 commit c08a1a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/best_practices/logic_preferences.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ either? Let's see an example:
7070
#
7171
# 4. It is when one instantiates this script on its own with .new() that
7272
# one will load "office.tscn" rather than the exported value.
73-
export(PackedScene) var a_building = preload("office.tscn")
73+
@export var a_building : PackedScene = preload("office.tscn")
7474

7575
# Uh oh! This results in an error!
7676
# One must assign constant values to constants. Because `load` performs a

0 commit comments

Comments
 (0)