Skip to content

Commit

Permalink
docs(operators.md): fix grammar (#5637)
Browse files Browse the repository at this point in the history
Closes #5635
  • Loading branch information
jakovljevic-mladen authored Aug 7, 2020
1 parent 326a418 commit 64e6bff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs_app/content/guide/operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

```

Expand All @@ -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.
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 64e6bff

Please sign in to comment.