Skip to content

Commit

Permalink
docs(operators.md): fix grammar (#5636)
Browse files Browse the repository at this point in the history
Closes #5635
  • Loading branch information
jakovljevic-mladen authored Aug 11, 2020
1 parent 40b32d8 commit e0fcd6d
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 @@ -23,9 +23,9 @@ import { map } from 'rxjs/operators';
of(1, 2, 3).pipe(map(x => x * x)).subscribe((v) => console.log(`value: ${v}`));

// Logs:
// value: 1
// value: 1
// value: 4
// value: 9
// value: 9

```

Expand All @@ -38,7 +38,7 @@ import { first } from 'rxjs/operators';
of(1, 2, 3).pipe(first()).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 @@ -301,7 +301,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 e0fcd6d

Please sign in to comment.