Skip to content

Commit

Permalink
Merge pull request #17 from nkochakian/readme-examples
Browse files Browse the repository at this point in the history
Fixed README example
  • Loading branch information
basiliscos authored Jan 28, 2019
2 parents 94ef3ec + 648cf10 commit 0331289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ socket.connect(end_point);
...
Buffer tx_buff, rx_buff;
c.async_write(
tx_buff, "llen", "my-queue" [&](const auto &error_code, auto bytes_transferred) {
tx_buff, r::single_command_t{"llen", "my-queue"}, [&](const auto &error_code, auto bytes_transferred) {
/* tx_buff must be consumed when it is no longer needed */
tx_buff.consume(bytes_transferred);
c.async_read(rx_buff, [&](const auto &error_code, result_t &&r) {
Expand Down

0 comments on commit 0331289

Please sign in to comment.