Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(operators.md): fix grammar #5636

Merged
merged 1 commit into from
Aug 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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