Skip to content

Commit

Permalink
fix(doc): api doc typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBorde authored Jan 26, 2023
1 parent 89d6168 commit 5ebd575
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,12 @@ function eventuallyLog(message) {
}
```

# Stack object
# Queue object

## stack.push(func)
## queue.enqueue(func)

- `func: function` - Function to exectute that may return a promise or an immediate value.
- returns: `Promise<any>` - Promise resolved when pushed function has been poped.
- returns: `Promise<any>` - Promise resolved when enqueued function has been dequeued.

# createStack(options)

Expand Down

0 comments on commit 5ebd575

Please sign in to comment.