Skip to content

Commit 8f784e4

Browse files
authored
Merge pull request godotengine#8615 from TheYellowArchitect/patch-13
Slight polish at enum example
2 parents 086cec9 + c01e958 commit 8f784e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/scripting/gdscript/gdscript_basics.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,10 +1236,10 @@ a dictionary can also be used with a named enum.
12361236
func _ready():
12371237
# Access values with Name.KEY, prints '5'
12381238
print(State.STATE_JUMP)
1239-
# Use constant dictionary functions
1239+
# Use dictionary methods:
12401240
# prints '["STATE_IDLE", "STATE_JUMP", "STATE_SHOOT"]'
12411241
print(State.keys())
1242-
# prints '["STATE_IDLE", "STATE_JUMP", "STATE_SHOOT"]'
1242+
# prints '{ "STATE_IDLE": 0, "STATE_JUMP": 5, "STATE_SHOOT": 6 }'
12431243
print(State)
12441244
# prints '[0, 5, 6]'
12451245
print(State.values())

0 commit comments

Comments
 (0)