瀏覽代碼

Fixed spelling mistake in comment on AS operator

The first is in "Only call SetFrame() is mySprite is not null" is clearly an error
Jeroen Kloppenburg 7 年之前
父節點
當前提交
0951d6082a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      getting_started/scripting/c_sharp/c_sharp_features.rst

+ 1 - 1
getting_started/scripting/c_sharp/c_sharp_features.rst

@@ -39,7 +39,7 @@ and for this reason it cannot be used with value types.
 .. code-block:: csharp
 
     Sprite mySprite = GetNode("MySprite") as Sprite;
-    // Only call SetFrame() is mySprite is not null
+    // Only call SetFrame() if mySprite is not null
     mySprite?.SetFrame(0);
 
 **Type checking using the IS operator**