diff --git a/docs/rules/no-nested-subscribe.md b/docs/rules/no-nested-subscribe.md index 57f660fa..34a7dd5b 100644 --- a/docs/rules/no-nested-subscribe.md +++ b/docs/rules/no-nested-subscribe.md @@ -21,10 +21,10 @@ import { of, timer } from "rxjs"; import { mapTo, mergeMap } from "rxjs/operators"; of(42, 54).pipe( - mergeMap((value) => timer(1e3).pipe(mapTo(value))) + mergeMap((value) => timer(1e3).pipe(map(() => value))) ).subscribe((value) => console.log(value)); ``` ## Options -This rule has no options. \ No newline at end of file +This rule has no options.