Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 23dd78f

Browse files
matasaruIgorMinar
authored andcommitted
docs($q): fix typos
1 parent d46fe3c commit 23dd78f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ng/q.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* interface for interacting with an object that represents the result of an action that is
1313
* performed asynchronously, and may or may not be finished at any given point in time.
1414
*
15-
* From the perspective of dealing with error handling, deferred and promise apis are to
15+
* From the perspective of dealing with error handling, deferred and promise APIs are to
1616
* asynchronous programming what `try`, `catch` and `throw` keywords are to synchronous programming.
1717
*
1818
* <pre>
@@ -47,7 +47,7 @@
4747
*
4848
* At first it might not be obvious why this extra complexity is worth the trouble. The payoff
4949
* comes in the way of
50-
* [guarantees that promise and deferred apis make](https://github.com/kriskowal/uncommonjs/blob/master/promises/specification.md).
50+
* [guarantees that promise and deferred APIs make](https://github.com/kriskowal/uncommonjs/blob/master/promises/specification.md).
5151
*
5252
* Additionally the promise api allows for composition that is very hard to do with the
5353
* traditional callback ([CPS](http://en.wikipedia.org/wiki/Continuation-passing_style)) approach.
@@ -59,7 +59,7 @@
5959
*
6060
* A new instance of deferred is constructed by calling `$q.defer()`.
6161
*
62-
* The purpose of the deferred object is to expose the associated Promise instance as well as apis
62+
* The purpose of the deferred object is to expose the associated Promise instance as well as APIs
6363
* that can be used for signaling the successful or unsuccessful completion of the task.
6464
*
6565
* **Methods**
@@ -136,7 +136,7 @@
136136
* expect(resolvedValue).toBeUndefined();
137137
*
138138
* // Simulate resolving of promise
139-
* defered.resolve(123);
139+
* deferred.resolve(123);
140140
* // Note that the 'then' function does not get called synchronously.
141141
* // This is because we want the promise API to always be async, whether or not
142142
* // it got called synchronously or asynchronously.
@@ -317,7 +317,7 @@ function qFactory(nextTick, exceptionHandler) {
317317
*
318318
* @param {*} value Value or a promise
319319
* @returns {Promise} Returns a single promise that will be resolved with an array of values,
320-
* each value coresponding to the promise at the same index in the `promises` array. If any of
320+
* each value corresponding to the promise at the same index in the `promises` array. If any of
321321
* the promises is resolved with a rejection, this resulting promise will be resolved with the
322322
* same rejection.
323323
*/
@@ -379,7 +379,7 @@ function qFactory(nextTick, exceptionHandler) {
379379
*
380380
* @param {Array.<Promise>} promises An array of promises.
381381
* @returns {Promise} Returns a single promise that will be resolved with an array of values,
382-
* each value coresponding to the promise at the same index in the `promises` array. If any of
382+
* each value corresponding to the promise at the same index in the `promises` array. If any of
383383
* the promises is resolved with a rejection, this resulting promise will be resolved with the
384384
* same rejection.
385385
*/

0 commit comments

Comments
 (0)