diff --git a/packages/forms/src/directives/validators.ts b/packages/forms/src/directives/validators.ts index 27d5c1a727..ef08b8c9a0 100644 --- a/packages/forms/src/directives/validators.ts +++ b/packages/forms/src/directives/validators.ts @@ -81,7 +81,7 @@ export interface Validator { * async validator directive with a custom error key. * * ```typescript - * import { of as observableOf } from 'rxjs'; + * import { of } from 'rxjs'; * * @Directive({ * selector: '[customAsyncValidator]', @@ -90,7 +90,7 @@ export interface Validator { * }) * class CustomAsyncValidatorDirective implements AsyncValidator { * validate(control: AbstractControl): Observable { - * return observableOf({'custom': true}); + * return of({'custom': true}); * } * } * ```