Преглед изворни кода

Fix wrong type on replacing callback's types example

Henrique Campos пре 6 година
родитељ
комит
c602bc4aa8
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      getting_started/scripting/gdscript/static_typing.rst

+ 1 - 1
getting_started/scripting/gdscript/static_typing.rst

@@ -288,7 +288,7 @@ And the same callback, with type hints:
     func _on_area_entered(area: CollisionObject2D) -> void:
         pass
 
-You’re free to replace, e.g. the ``PhysicsBody2D``, with your own type,
+You’re free to replace, e.g. the ``CollisionObject2D``, with your own type,
 to cast parameters automatically:
 
 ::