Skip to content

Commit cceb8ac

Browse files
skyace65mhilbrunner
authored andcommitted
Merge pull request #8774 from 31/patch-1
Update c_sharp_differences.rst ToSignal example
1 parent 3136779 commit cceb8ac

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)