Skip to content

Commit c09f619

Browse files
danrbergmanrodyhaddad
danrbergman
authored andcommitted
docs($q): fixed spelling, removed extra characters
Closes angular#8779
1 parent 1eda183 commit c09f619

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/ng/q.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
* @description
99
* A promise/deferred implementation inspired by [Kris Kowal's Q](https://github.com/kriskowal/q).
1010
*
11-
* $q can be used in two fashions --- One, which is more similar to Kris Kowal's Q or jQuery's Deferred
12-
* implementations, the other resembles ES6 promises to some degree.
11+
* $q can be used in two fashions --- one which is more similar to Kris Kowal's Q or jQuery's Deferred
12+
* implementations, and the other which resembles ES6 promises to some degree.
1313
*
1414
* # $q constructor
1515
*
1616
* The streamlined ES6 style promise is essentially just using $q as a constructor which takes a `resolver`
17-
* function as the first argument). This is similar to the native Promise implementation from ES6 Harmony,
17+
* function as the first argument. This is similar to the native Promise implementation from ES6 Harmony,
1818
* see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).
1919
*
20-
* While the constructor-style use is supported, not all of the supporting methods from Harmony promises are
20+
* While the constructor-style use is supported, not all of the supporting methods from ES6 Harmony promises are
2121
* available yet.
2222
*
2323
* It can be used like so:
@@ -44,9 +44,9 @@
4444
* });
4545
* ```
4646
*
47-
* Note, progress/notify callbacks are not currently supported via the ES6-style interface.
47+
* Note: progress/notify callbacks are not currently supported via the ES6-style interface.
4848
*
49-
* However, the more traditional CommonJS style usage is still available, and documented below.
49+
* However, the more traditional CommonJS-style usage is still available, and documented below.
5050
*
5151
* [The CommonJS Promise proposal](http://wiki.commonjs.org/wiki/Promises) describes a promise as an
5252
* interface for interacting with an object that represents the result of an action that is
@@ -134,7 +134,7 @@
134134
*
135135
* This method *returns a new promise* which is resolved or rejected via the return value of the
136136
* `successCallback`, `errorCallback`. It also notifies via the return value of the
137-
* `notifyCallback` method. The promise can not be resolved or rejected from the notifyCallback
137+
* `notifyCallback` method. The promise cannot be resolved or rejected from the notifyCallback
138138
* method.
139139
*
140140
* - `catch(errorCallback)` – shorthand for `promise.then(null, errorCallback)`
@@ -204,7 +204,7 @@
204204
* ```
205205
*
206206
* @param {function(function, function)} resolver Function which is responsible for resolving or
207-
* rejecting the newly created promise. The first parameteter is a function which resolves the
207+
* rejecting the newly created promise. The first parameter is a function which resolves the
208208
* promise, the second parameter is a function which rejects the promise.
209209
*
210210
* @returns {Promise} The newly created promise.

0 commit comments

Comments
 (0)