Jelajahi Sumber

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.
Dipl.-Ing. Dr. Markus Weninger, BSc 3 bulan lalu
induk
melakukan
15912feec0
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  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:
 And the same callback, with type hints:
 
 
 ::
 ::
-
-    func _on_area_entered(area: CollisionObject2D) -> void:
+    func _on_area_2d_body_entered(body: PhysicsBody2D) -> void:
         pass
         pass
 
 
 Warning system
 Warning system