From 1ce681b1e300b4fc239bedfc456f9acfd58b9575 Mon Sep 17 00:00:00 2001 From: BrainCrumbz Date: Fri, 31 Mar 2023 09:26:35 +0200 Subject: [PATCH] docs(deprecations): fix some typos in Scheduler Argument (#7119) * docs(deprecations): fix some typos in Scheduler Argument * docs(deprecations): apply PR suggestions Ref. https://github.com/ReactiveX/rxjs/pull/7119#pullrequestreview-1203512123 (cherry picked from commit 5353ca4f8f9ea2da5d5d0ebd3853e340131235ce) --- docs_app/content/deprecations/scheduler-argument.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs_app/content/deprecations/scheduler-argument.md b/docs_app/content/deprecations/scheduler-argument.md index da7785deae..5883b4fc56 100644 --- a/docs_app/content/deprecations/scheduler-argument.md +++ b/docs_app/content/deprecations/scheduler-argument.md @@ -24,13 +24,13 @@ To support this transition the [scheduled creation function](/api/index/function ## How to Refactor -If you use any other operator from the list above and using the `scheduler` argument, you have to three potential refactoring options. +If you use any operator from the above list and you're passing the `scheduler` argument, you have three potential refactoring options. ### Refactoring of `of` and `from` `scheduled` is kinda copying the behavior of `from`. Therefore if you used `from` with a `scheduler` argument, you can just replace them. -For the `of` creation function you need to this Observable with `scheduled` and instead of passing the `scheduler` argument to `of` pass it to `scheduled`. +For the `of` creation function you need to replace this Observable with `scheduled` and instead of passing the `scheduler` argument to `of` pass it to `scheduled`. Following code example demonstrate this process. ```ts