[no ci] fix doc (#685)

This commit is contained in:
saipubw 2024-05-27 14:36:34 +08:00 committed by GitHub
parent 2e5396cbc8
commit 350fbc4352
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -427,7 +427,7 @@ using namespace coro_rpc;
using namespace async_simple::coro;
Lazy<void> rpc_call(coro_rpc_client& cli) {
assert(co_await cli.call<echo<int>>(42).value() == 42);
assert(co_await cli.call<echo<int>>("Hello").value() == "Hello");
assert(co_await cli.call<echo<int>>(std::vector{1,2,3}).value() == std::vector{1,2,3});
assert(co_await cli.call<echo<std::string>>("Hello").value() == "Hello");
assert(co_await cli.call<echo<std::vector<int>>>(std::vector{1,2,3}).value() == std::vector{1,2,3});
}
```

View File

@ -425,7 +425,7 @@ using namespace coro_rpc;
using namespace async_simple::coro;
Lazy<void> rpc_call(coro_rpc_client& cli) {
assert(co_await cli.call<echo<int>>(42).value() == 42);
assert(co_await cli.call<echo<int>>("Hello").value() == "Hello");
assert(co_await cli.call<echo<int>>(std::vector{1,2,3}).value() == std::vector{1,2,3});
assert(co_await cli.call<echo<std::string>>("Hello").value() == "Hello");
assert(co_await cli.call<echo<std::vector<int>>>(std::vector{1,2,3}).value() == std::vector{1,2,3});
}
```