Skip to content

Commit 7b588dc

Browse files
authored
Update c_sharp_differences.rst ToSignal example
1 parent 946fc52 commit 7b588dc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tutorials/scripting/c_sharp/c_sharp_differences.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,5 +854,8 @@ Example:
854854

855855
.. code-block:: csharp
856856
857-
await ToSignal(timer, "timeout");
858-
GD.Print("After timeout");
857+
public async Task SomeFunction()
858+
{
859+
await ToSignal(timer, Timer.SignalName.Timeout);
860+
GD.Print("After timeout");
861+
}

0 commit comments

Comments
 (0)