Skip to content

Commit

Permalink
docs: Use correct completion callback signature (yargs#1139) [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdias authored and evocateur committed May 31, 2018
1 parent a881947 commit 99cd33e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ But wait, there's more! You can return an asynchronous promise.

```js
var argv = require('yargs')
.completion('completion', function(current, argv, done) {
.completion('completion', function(current, argv) {
return new Promise(function (resolve, reject) {
setTimeout(function () {
resolve(['apple', 'banana'])
Expand Down

0 comments on commit 99cd33e

Please sign in to comment.