Skip to content

Commit

Permalink
Fixed a few incorrect signatures in docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Toon Schoenmakers committed Aug 3, 2015
1 parent 06bb60b commit a0d7063
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions include/channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ class Channel
*
* The onSuccess() callback that you can install should have the following signature:
*
* void myCallback(AMQP::Channel *channel, const std::string &name, uint32_t messageCount, uint32_t consumerCount);
* void myCallback(const std::string &name, uint32_t messageCount, uint32_t consumerCount);
*
* For example: channel.declareQueue("myqueue").onSuccess([](AMQP::Channel *channel, const std::string &name, uint32_t messageCount, uint32_t consumerCount) {
* For example: channel.declareQueue("myqueue").onSuccess([](const std::string &name, uint32_t messageCount, uint32_t consumerCount) {
*
* std::cout << "Queue '" << name << "' has been declared with " << messageCount << " messages and " << consumerCount << " consumers" << std::endl;
*
Expand Down Expand Up @@ -291,9 +291,9 @@ class Channel
*
* The onSuccess() callback that you can install should have the following signature:
*
* void myCallback(AMQP::Channel *channel, uint32_t messageCount);
* void myCallback(uint32_t messageCount);
*
* For example: channel.declareQueue("myqueue").onSuccess([](AMQP::Channel *channel, uint32_t messageCount) {
* For example: channel.declareQueue("myqueue").onSuccess([](uint32_t messageCount) {
*
* std::cout << "Queue purged, all " << messageCount << " messages removed" << std::endl;
*
Expand All @@ -317,9 +317,9 @@ class Channel
*
* The onSuccess() callback that you can install should have the following signature:
*
* void myCallback(AMQP::Channel *channel, uint32_t messageCount);
* void myCallback(uint32_t messageCount);
*
* For example: channel.removeQueue("myqueue").onSuccess([](AMQP::Channel *channel, uint32_t messageCount) {
* For example: channel.removeQueue("myqueue").onSuccess([](uint32_t messageCount) {
*
* std::cout << "Queue deleted, along with " << messageCount << " messages" << std::endl;
*
Expand Down Expand Up @@ -385,9 +385,9 @@ class Channel
*
* The onSuccess() callback that you can install should have the following signature:
*
* void myCallback(AMQP::Channel *channel, const std::string& tag);
* void myCallback(const std::string& tag);
*
* For example: channel.consume("myqueue").onSuccess([](AMQP::Channel *channel, const std::string& tag) {
* For example: channel.consume("myqueue").onSuccess([](const std::string& tag) {
*
* std::cout << "Started consuming under tag " << tag << std::endl;
*
Expand Down

0 comments on commit a0d7063

Please sign in to comment.