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

Commit 9e2fd89

Browse files
Ore4444petebacondarwin
authored andcommitted
docs($q): fix a few issues
1 parent a2d4b5c commit 9e2fd89

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
@@ -85,8 +85,8 @@
8585
* **Methods**
8686
*
8787
* - `then(successCallback, errorCallback)` – regardless of when the promise was or will be resolved
88-
* or rejected calls one of the success or error callbacks asynchronously as soon as the result
89-
* is available. The callbacks are called with a single argument the result or rejection reason.
88+
* or rejected, `then` calls one of the success or error callbacks asynchronously as soon as the result
89+
* is available. The callbacks are called with a single argument: the result or rejection reason.
9090
*
9191
* This method *returns a new promise* which is resolved or rejected via the return value of the
9292
* `successCallback` or `errorCallback`.
@@ -99,21 +99,21 @@
9999
*
100100
* # Chaining promises
101101
*
102-
* Because calling `then` api of a promise returns a new derived promise, it is easily possible
102+
* Because calling the `then` method of a promise returns a new derived promise, it is easily possible
103103
* to create a chain of promises:
104104
*
105105
* <pre>
106106
* promiseB = promiseA.then(function(result) {
107107
* return result + 1;
108108
* });
109109
*
110-
* // promiseB will be resolved immediately after promiseA is resolved and its value will be
111-
* // the result of promiseA incremented by 1
110+
* // promiseB will be resolved immediately after promiseA is resolved and its value
111+
* // will be the result of promiseA incremented by 1
112112
* </pre>
113113
*
114114
* It is possible to create chains of any length and since a promise can be resolved with another
115115
* promise (which will defer its resolution further), it is possible to pause/defer resolution of
116-
* the promises at any point in the chain. This makes it possible to implement powerful apis like
116+
* the promises at any point in the chain. This makes it possible to implement powerful APIs like
117117
* $http's response interceptors.
118118
*
119119
*

0 commit comments

Comments
 (0)