Skip to content

Commit c2e68a8

Browse files
31AThousandShips
andcommitted
Apply suggestions from code review
Co-authored-by: A Thousand Ships <[email protected]>
1 parent 2f94e1f commit c2e68a8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tutorials/scripting/c_sharp/c_sharp_variant.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ We recommend avoiding ``Godot.Variant`` unless it is necessary to interact with
1010
Take advantage of C#'s type safety when possible.
1111

1212
Converting from a Variant-compatible C# type to ``Godot.Variant`` can be done using implicit
13-
conversions. Also available are ``CreateFrom`` method overloads and the generic ``Variant.From<T>``
13+
conversions. There are also ``CreateFrom`` method overloads and the generic ``Variant.From<T>``
1414
methods. Only the syntax is different: the behavior is the same.
1515

1616
.. code-block:: csharp
@@ -31,9 +31,9 @@ specifying the final color of the tween is a ``Godot.Variant``.
3131
Tween tween = CreateTween();
3232
tween.TweenProperty(GetNode("Sprite"), "modulate", Colors.Red, 1.0f);
3333
34-
Converting from ``Godot.Variant`` to a C# type can be done using explicit conversions. Also
35-
available are ``Variant.As{TYPE}`` methods or the generic ``Variant.As<T>`` method. All of these
36-
behave the same.
34+
Converting from ``Godot.Variant`` to a C# type can be done using explicit conversions. There are
35+
also ``Variant.As{TYPE}`` methods and the generic ``Variant.As<T>`` method. All of these behave the
36+
same.
3737

3838
.. code-block:: csharp
3939
@@ -70,7 +70,7 @@ acceptable, consider using a ``Variant.As<GodotObject>() is MyNode n`` type patt
7070
.. note::
7171

7272
Since the Variant type in C# is a struct, it can't be null. To create a "null"
73-
Variant, use the ``default`` keyword or ``Godot.Variant`` parameterless constructor.
73+
Variant, use the ``default`` keyword or the ``Godot.Variant`` parameterless constructor.
7474

7575
Variant-compatible types
7676
------------------------

0 commit comments

Comments
 (0)