From 64e6bff10d43d6d9f26171d27cc980dec93f8d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mladen=20Jakovljevi=C4=87?= Date: Fri, 7 Aug 2020 17:40:45 +0200 Subject: [PATCH] docs(operators.md): fix grammar (#5637) Closes #5635 --- docs_app/content/guide/operators.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs_app/content/guide/operators.md b/docs_app/content/guide/operators.md index 9d041ef75a..56f2829e65 100644 --- a/docs_app/content/guide/operators.md +++ b/docs_app/content/guide/operators.md @@ -21,9 +21,9 @@ import { map } from 'rxjs/operators'; map(x => x * x)(of(1, 2, 3)).subscribe((v) => console.log(`value: ${v}`)); // Logs: -// value: 1 +// value: 1 // value: 4 -// value: 9 +// value: 9 ``` @@ -36,7 +36,7 @@ import { first } from 'rxjs/operators'; first()(of(1, 2, 3)).subscribe((v) => console.log(`value: ${v}`)); // Logs: -// value: 1 +// value: 1 ``` Note that `map` logically must be constructed on the fly, since it must be given the mapping function to. By contrast, `first` could be a constant, but is nonetheless constructed on the fly. As a general practice, all operators are constructed, whether they need arguments or not. @@ -298,7 +298,7 @@ import { Observable } from 'rxjs'; function delay(delayInMillis) { return (observable) => new Observable(observer => { - // this function will called each time this + // this function will be called each time this // Observable is subscribed to. const allTimerIDs = new Set(); const subscription = observable.subscribe({