Skip to content

Commit 2fb22bf

Browse files
authored
docs(operators): scan (#6414)
missing number$
1 parent bffa83c commit 2fb22bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/internal/operators/scan.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ export function scan<V, A, S>(accumulator: (acc: A | S, value: V, index: number)
3535
* first value from the source.
3636
*
3737
* ```ts
38-
* import { interval } from 'rxjs';
38+
* import { interval, of } from 'rxjs';
3939
* import { scan, map } from 'rxjs/operators';
4040
*
41+
* const numbers$ = of(1, 2, 3);
42+
*
4143
* numbers$
4244
* .pipe(
4345
* // Get the sum of the numbers coming in.

0 commit comments

Comments
 (0)