docs(core): fix typo and example in InjectionToken doc (#15449)

The doc included an example that didn't use InjectionToken.
This commit is contained in:
JB Nizet 2017-03-28 18:37:08 +02:00 committed by Victor Berchet
parent eac99c1b16
commit d05aa70c6b
1 changed files with 3 additions and 3 deletions

View File

@ -42,8 +42,8 @@ export class OpaqueToken {
* runtime representation) such as when injecting an interface, callable type, array or
* parametrized type.
*
* `InjectionToken` is parametrize on `T` which is the type of object which will be returned by the
* `Injector`. This provides additional level of type safety.
* `InjectionToken` is parameterized on `T` which is the type of object which will be returned by
* the `Injector`. This provides additional level of type safety.
*
* ```
* interface MyInterface {...}
@ -53,7 +53,7 @@ export class OpaqueToken {
*
* ### Example
*
* {@example core/di/ts/injector_spec.ts region='Injector'}
* {@example core/di/ts/injector_spec.ts region='InjectionToken'}
*
* @stable
*/