Skip to content

Commit

Permalink
docs(shareReplay): rename variable in example (#4501)
Browse files Browse the repository at this point in the history
Closes #4428
  • Loading branch information
cartant authored and benlesh committed Jan 29, 2019
1 parent 4bb9102 commit fb24303
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/internal/operators/shareReplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import { Subscriber } from '../Subscriber';
* ## Example
* ```javascript
* const obs$ = interval(1000);
* const subscription = obs$.pipe(
* const shared$ = obs$.pipe(
* take(4),
* shareReplay(3)
* );
* subscription.subscribe(x => console.log('source A: ', x));
* subscription.subscribe(y => console.log('source B: ', y));
* shared$.subscribe(x => console.log('source A: ', x));
* shared$.subscribe(y => console.log('source B: ', y));
*
* ```
*
Expand Down

0 comments on commit fb24303

Please sign in to comment.