Преглед на файлове

Merge pull request #11066 from NeonMika/patch-1

Update static_typing.rst
Matthew преди 2 месеца
родител
ревизия
e8be7dee33
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      tutorials/scripting/gdscript/static_typing.rst

+ 1 - 2
tutorials/scripting/gdscript/static_typing.rst

@@ -439,8 +439,7 @@ signal in a dynamic style:
 And the same callback, with type hints:
 
 ::
-
-    func _on_area_entered(area: CollisionObject2D) -> void:
+    func _on_area_2d_body_entered(body: PhysicsBody2D) -> void:
         pass
 
 Warning system