diff options
| author | radu | 2013-02-06 17:16:56 -0500 | 
|---|---|---|
| committer | Igor Minar | 2013-02-07 04:16:49 -0800 | 
| commit | a8e114f3516b513be4eea2b0a9b5d1817c2d8a2a (patch) | |
| tree | d83ffe89013833897186e62970d4ed629e63b50c /src | |
| parent | 9a3a9b46e5d596811d85f11be16ac805ddfdc8f1 (diff) | |
| download | angular.js-a8e114f3516b513be4eea2b0a9b5d1817c2d8a2a.tar.bz2 | |
docs($q): fix typos
Diffstat (limited to 'src')
| -rw-r--r-- | src/ng/q.js | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ng/q.js b/src/ng/q.js index 8b474755..ef856dca 100644 --- a/src/ng/q.js +++ b/src/ng/q.js @@ -12,7 +12,7 @@   * interface for interacting with an object that represents the result of an action that is   * performed asynchronously, and may or may not be finished at any given point in time.   * - * From the perspective of dealing with error handling, deferred and promise apis are to + * From the perspective of dealing with error handling, deferred and promise APIs are to   * asynchronous programming what `try`, `catch` and `throw` keywords are to synchronous programming.   *   * <pre> @@ -47,7 +47,7 @@   *   * At first it might not be obvious why this extra complexity is worth the trouble. The payoff   * comes in the way of - * [guarantees that promise and deferred apis make](https://github.com/kriskowal/uncommonjs/blob/master/promises/specification.md). + * [guarantees that promise and deferred APIs make](https://github.com/kriskowal/uncommonjs/blob/master/promises/specification.md).   *   * Additionally the promise api allows for composition that is very hard to do with the   * traditional callback ([CPS](http://en.wikipedia.org/wiki/Continuation-passing_style)) approach. @@ -59,7 +59,7 @@   *   * A new instance of deferred is constructed by calling `$q.defer()`.   * - * The purpose of the deferred object is to expose the associated Promise instance as well as apis + * The purpose of the deferred object is to expose the associated Promise instance as well as APIs   * that can be used for signaling the successful or unsuccessful completion of the task.   *   * **Methods** @@ -136,7 +136,7 @@   *      expect(resolvedValue).toBeUndefined();   *    *      // Simulate resolving of promise - *      defered.resolve(123); + *      deferred.resolve(123);   *      // Note that the 'then' function does not get called synchronously.   *      // This is because we want the promise API to always be async, whether or not   *      // it got called synchronously or asynchronously. @@ -317,7 +317,7 @@ function qFactory(nextTick, exceptionHandler) {     *     * @param {*} value Value or a promise     * @returns {Promise} Returns a single promise that will be resolved with an array of values, -   *   each value coresponding to the promise at the same index in the `promises` array. If any of +   *   each value corresponding to the promise at the same index in the `promises` array. If any of     *   the promises is resolved with a rejection, this resulting promise will be resolved with the     *   same rejection.     */ @@ -379,7 +379,7 @@ function qFactory(nextTick, exceptionHandler) {     *     * @param {Array.<Promise>} promises An array of promises.     * @returns {Promise} Returns a single promise that will be resolved with an array of values, -   *   each value coresponding to the promise at the same index in the `promises` array. If any of +   *   each value corresponding to the promise at the same index in the `promises` array. If any of     *   the promises is resolved with a rejection, this resulting promise will be resolved with the     *   same rejection.     */  | 
