diff --git a/modules/angular2/src/di/binding.ts b/modules/angular2/src/di/binding.ts index 86284c6b85..7ab618a8dc 100644 --- a/modules/angular2/src/di/binding.ts +++ b/modules/angular2/src/di/binding.ts @@ -401,7 +401,7 @@ export class BindingBuilder { * ```javascript * var injector = Injector.resolveAndCreate([ * bind(Number).toFactory(() => { return 1+2; }}), - * bind(String).toFactory((v) => { return "Value: " + v; }, [String] }) + * bind(String).toFactory((v) => { return "Value: " + v; }, [Number] }) * ]); * * expect(injector.get(Number)).toEqual(3); @@ -422,7 +422,7 @@ export class BindingBuilder { * bind(Number).toAsyncFactory(() => { * return new Promise((resolve) => resolve(1 + 2)); * }), - * bind(String).toFactory((v) => { return "Value: " + v; }, [String]) + * bind(String).toFactory((v) => { return "Value: " + v; }, [Number]) * ]); * * injector.asyncGet(Number).then((v) => expect(v).toBe(3));