Преглед на файлове

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 години
родител
ревизия
bcc17ae216
променени са 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);
         }
     }