fix router example

This commit is contained in:
jangko 2023-08-15 13:49:02 +07:00
parent 32200345f8
commit 26abc0e3d2
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9

View File

@ -44,8 +44,8 @@ import json_rpc/rpcserver
var router = newRpcRouter()
router.rpc:
result = %"Hello"
router.rpc("hello") do() -> string:
result = "Hello"
```
As no return type was specified in this example, `result` defaults to the `JsonNode` type.