Skip to content

Commit

Permalink
pubsub#ack - mark callback as optional for docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Mar 30, 2015
1 parent 13ad9dc commit 74ced67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pubsub/subscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,12 @@ Subscription.prototype.startPulling_ = function() {

/**
* Acknowledge to the backend that the message was retrieved. You must provide
* either a single ID, or an array of IDs.
* either a single ID or an array of IDs.
*
* @throws {Error} If at least one id is not provided.
*
* @param {string|string[]} ids - An ID or array of message IDs.
* @param {function} callback - The callback function.
* @param {function=} callback - The callback function.
*
* @example
* subscription.ack('ePHEESyhuE8e...', function(err) {});
Expand Down

0 comments on commit 74ced67

Please sign in to comment.