File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ export class BindingBuilder {
401401 * ```javascript
402402 * var injector = Injector.resolveAndCreate([
403403 * bind(Number).toFactory(() => { return 1+2; }}),
404- * bind(String).toFactory((v) => { return "Value: " + v; }, [String ] })
404+ * bind(String).toFactory((v) => { return "Value: " + v; }, [Number ] })
405405 * ]);
406406 *
407407 * expect(injector.get(Number)).toEqual(3);
@@ -422,7 +422,7 @@ export class BindingBuilder {
422422 * bind(Number).toAsyncFactory(() => {
423423 * return new Promise((resolve) => resolve(1 + 2));
424424 * }),
425- * bind(String).toFactory((v) => { return "Value: " + v; }, [String ])
425+ * bind(String).toFactory((v) => { return "Value: " + v; }, [Number ])
426426 * ]);
427427 *
428428 * injector.asyncGet(Number).then((v) => expect(v).toBe(3));
You can’t perform that action at this time.
0 commit comments