doc(DI): fix inline doc in binding.ts

fixes #1894
This commit is contained in:
Victor Berchet 2015-05-14 14:28:47 +02:00
parent 7310b09a1a
commit b033416a45
1 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,7 @@ export class Binding {
* var injector = Injector.resolveAndCreate([
* new Binding(Number, { toFactory: () => { return 1+2; }}),
* new Binding(String, { toFactory: (value) => { return "Value: " + value; },
* dependencies: [String] })
* dependencies: [Number] })
* ]);
*
* expect(injector.get(Number)).toEqual(3);
@ -159,7 +159,7 @@ export class Binding {
* return new Promise((resolve) => resolve(1 + 2));
* }}),
* new Binding(String, { toFactory: (value) => { return "Value: " + value; },
* dependencies: [String]})
* dependencies: [Number]})
* ]);
*
* injector.asyncGet(Number).then((v) => expect(v).toBe(3));
@ -186,7 +186,7 @@ export class Binding {
* var injector = Injector.resolveAndCreate([
* new Binding(Number, { toFactory: () => { return 1+2; }}),
* new Binding(String, { toFactory: (value) => { return "Value: " + value; },
* dependencies: [String] })
* dependencies: [Number] })
* ]);
*
* expect(injector.get(Number)).toEqual(3);