Small typo in ctor docs

This commit is contained in:
ideadapt 2015-11-19 19:58:42 +01:00
parent 16134c168d
commit 1dd3cfcdfc

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().
*/