Fixed typos (#1906)

This commit is contained in:
Vallentin
2018-11-20 09:44:00 +01:00
committed by Rémi Verschelde
parent 0be8f1c12e
commit cd4353790f
5 changed files with 8 additions and 8 deletions

View File

@@ -146,8 +146,8 @@ into a constant:
Variable casting
~~~~~~~~~~~~~~~~
Type casting is a key concept in typed languages. We call the conversion
of a value from from one type of another casting.
Type casting is a key concept in typed languages.
Casting is the conversion of a value from one type to another.
Imagine an Enemy in your game, that ``extends Area2D``. You want it to
collide with the Player, a ``KinematicBody2D`` with a script called
@@ -191,7 +191,7 @@ This happens when you get a child node. Lets take a timer for example:
with dynamic code, you can get the node with ``$Timer``. GDScript
supports `duck-typing <https://stackoverflow.com/a/4205163/8125343>`__,
so even if your timer is of type ``Timer``, it is also a ``Node`` and an
``Object``, two classes it extends. With dynamic GDScript, you also also
``Object``, two classes it extends. With dynamic GDScript, you also
dont care about the nodes type as long as it has the methods you need
to call.