From c602bc4aa86246ddc6c438b9d998950a9c376520 Mon Sep 17 00:00:00 2001 From: Henrique Campos Date: Sat, 30 Mar 2019 09:45:39 -0300 Subject: [PATCH] Fix wrong type on replacing callback's types example --- getting_started/scripting/gdscript/static_typing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting_started/scripting/gdscript/static_typing.rst b/getting_started/scripting/gdscript/static_typing.rst index 77b56c100..e769c0a98 100644 --- a/getting_started/scripting/gdscript/static_typing.rst +++ b/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: ::