From c2e68a8dbe82bf953b07b67a0a75be13bf4bf0de Mon Sep 17 00:00:00 2001 From: 31 <331300+31@users.noreply.github.com> Date: Sat, 3 Feb 2024 03:41:27 -0600 Subject: [PATCH] Apply suggestions from code review Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> --- tutorials/scripting/c_sharp/c_sharp_variant.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tutorials/scripting/c_sharp/c_sharp_variant.rst b/tutorials/scripting/c_sharp/c_sharp_variant.rst index f688136e5..899dd390a 100644 --- a/tutorials/scripting/c_sharp/c_sharp_variant.rst +++ b/tutorials/scripting/c_sharp/c_sharp_variant.rst @@ -10,7 +10,7 @@ We recommend avoiding ``Godot.Variant`` unless it is necessary to interact with Take advantage of C#'s type safety when possible. Converting from a Variant-compatible C# type to ``Godot.Variant`` can be done using implicit -conversions. Also available are ``CreateFrom`` method overloads and the generic ``Variant.From`` +conversions. There are also ``CreateFrom`` method overloads and the generic ``Variant.From`` methods. Only the syntax is different: the behavior is the same. .. code-block:: csharp @@ -31,9 +31,9 @@ specifying the final color of the tween is a ``Godot.Variant``. Tween tween = CreateTween(); tween.TweenProperty(GetNode("Sprite"), "modulate", Colors.Red, 1.0f); -Converting from ``Godot.Variant`` to a C# type can be done using explicit conversions. Also -available are ``Variant.As{TYPE}`` methods or the generic ``Variant.As`` method. All of these -behave the same. +Converting from ``Godot.Variant`` to a C# type can be done using explicit conversions. There are +also ``Variant.As{TYPE}`` methods and the generic ``Variant.As`` method. All of these behave the +same. .. code-block:: csharp @@ -70,7 +70,7 @@ acceptable, consider using a ``Variant.As() is MyNode n`` type patt .. note:: Since the Variant type in C# is a struct, it can't be null. To create a "null" - Variant, use the ``default`` keyword or ``Godot.Variant`` parameterless constructor. + Variant, use the ``default`` keyword or the ``Godot.Variant`` parameterless constructor. Variant-compatible types ------------------------