浏览代码

Fix unsupported C# syntax in Input examples code sample

This caused a warning in the Sphinx lexer, which turns into an error
on the GitHub Actions CI.
Hugo Locurcio 4 年之前
父节点
当前提交
7ac57f4c8e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/inputs/input_examples.rst

+ 1 - 1
tutorials/inputs/input_examples.rst

@@ -141,7 +141,7 @@ avoid this, make sure to test the event type first:
     {
         if (inputEvent is InputEventMouseButton mouseEvent)
         {
-            GD.Print($"mouse button event at {mouseEvent.Position}");
+            GD.Print("mouse button event at ", mouseEvent.Position);
         }
     }