Merge pull request #6841 from ideadapt/patch-1

Small typo in ctor docs
This commit is contained in:
Masahiro Wakame
2015-11-22 09:19:41 +09:00
+1 -1
View File
@@ -12,7 +12,7 @@ declare class Promise<R> implements Thenable<R> {
/**
* If you call resolve in the body of the callback passed to the constructor,
* your promise is fulfilled with result object passed to resolve.
* If you call reject your promise is rejected with the object passed to resolve.
* If you call reject your promise is rejected with the object passed to reject.
* For consistency and debugging (eg stack traces), obj should be an instanceof Error.
* Any errors thrown in the constructor callback will be implicitly passed to reject().
*/