Skip to content

Commit 15912fe

Browse files
authored
Update static_typing.rst
The documentations said it shows the same callback two times, one time with dynamic typing and one time with type hints. In reality, two different callbacks were shown. This has been fixed.
1 parent 3fc60b4 commit 15912fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tutorials/scripting/gdscript/static_typing.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,7 @@ signal in a dynamic style:
439439
And the same callback, with type hints:
440440

441441
::
442-
443-
func _on_area_entered(area: CollisionObject2D) -> void:
442+
func _on_area_2d_body_entered(body: PhysicsBody2D) -> void:
444443
pass
445444

446445
Warning system

0 commit comments

Comments
 (0)