Skip to content

Commit

Permalink
docs(operators): add missing import to the example (#4638)
Browse files Browse the repository at this point in the history
* docs(operators): add missing import to the example

mergeScan import was missing in the example so it did not work

* docs(example): comment out expected result
  • Loading branch information
saxicek authored and niklas-wortmann committed Mar 18, 2019
1 parent c4f44b9 commit 2b1ebf8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/internal/operators/mergeScan.ts
Expand Up @@ -19,7 +19,7 @@ import { ObservableInput, OperatorFunction } from '../types';
* Count the number of click events
* ```javascript
* import { fromEvent, of } from 'rxjs';
* import { mapTo } from 'rxjs/operators';
* import { mapTo, mergeScan } from 'rxjs/operators';
*
* const click$ = fromEvent(document, 'click');
* const one$ = click$.pipe(mapTo(1));
Expand All @@ -30,10 +30,10 @@ import { ObservableInput, OperatorFunction } from '../types';
* count$.subscribe(x => console.log(x));
*
* // Results:
* 1
* 2
* 3
* 4
* // 1
* // 2
* // 3
* // 4
* // ...and so on for each click
* ```
*
Expand Down

0 comments on commit 2b1ebf8

Please sign in to comment.