Skip to content

Commit

Permalink
Correct spelling mistakes (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardBetts committed Apr 10, 2022
1 parent 47c5044 commit 8e54ea5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1960,7 +1960,7 @@ Where:


* `condition` is a concurrency limiting condition, such as [guard.n](#guardn) * `condition` is a concurrency limiting condition, such as [guard.n](#guardn)


Limit the concurrency of a function. Creates a new function whose concurrency is limited by `condition`. This can be useful with operations such as [when.map](#whenmap), [when/parallel](#whenparallel), etc. that allow tasks to execute in "parallel", to limit the number which can be inflight simultanously. Limit the concurrency of a function. Creates a new function whose concurrency is limited by `condition`. This can be useful with operations such as [when.map](#whenmap), [when/parallel](#whenparallel), etc. that allow tasks to execute in "parallel", to limit the number which can be inflight simultaneously.


```js ```js
// Using when/guard with when.map to limit concurrency // Using when/guard with when.map to limit concurrency
Expand Down
2 changes: 1 addition & 1 deletion node.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ define(function(require) {
* knows how to handle promises given as arguments, waiting for their * knows how to handle promises given as arguments, waiting for their
* resolution before executing. * resolution before executing.
* *
* Upon execution, the orginal function is executed as well. If it passes * Upon execution, the original function is executed as well. If it passes
* a truthy value as the first argument to the callback, it will be * a truthy value as the first argument to the callback, it will be
* interpreted as an error condition, and the promise will be rejected * interpreted as an error condition, and the promise will be rejected
* with it. Otherwise, the call is considered a resolution, and the promise * with it. Otherwise, the call is considered a resolution, and the promise
Expand Down

0 comments on commit 8e54ea5

Please sign in to comment.