Skip to content

Commit 91a14dd

Browse files
authored
docs: Update messaging-system.md (#325)
Fixed broken lambda expression in named message example code: missing "=>" (line 198).
1 parent bc56c36 commit 91a14dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/_docs/the-basics/messaging-system.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ private void Start()
195195
private void Start()
196196
{
197197
//Receiving
198-
CustomMessagingManager.RegisterNamedMessageHandler("myMessageName", (senderClientId, stream)
198+
CustomMessagingManager.RegisterNamedMessageHandler("myMessageName", (senderClientId, stream) =>
199199
{
200200
using (PooledBitReader reader = PooledBitReader.Get(stream))
201201
{
@@ -207,4 +207,4 @@ private void Start()
207207
//Sending
208208
CustomMessagingManager.SendNamedMessage("myMessageName", clientId, myStream, "myCustomChannel"); //Channel is optional.
209209
}
210-
```
210+
```

0 commit comments

Comments
 (0)