Skip to content

Commit

Permalink
docs(operators): fixing a typo (#7086)
Browse files Browse the repository at this point in the history
There seems to be a typo in this doc,
... received so ~var~ -> ... received so _far_
  • Loading branch information
naticaceres authored Dec 3, 2022
1 parent 5abd86e commit 11342ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/operators/scan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function scan<V, A, S>(accumulator: (acc: A | S, value: V, index: number)
* // Get the sum of the numbers coming in.
* scan((total, n) => total + n),
* // Get the average by dividing the sum by the total number
* // received so var (which is 1 more than the zero-based index).
* // received so far (which is 1 more than the zero-based index).
* map((sum, index) => sum / (index + 1))
* )
* .subscribe(console.log);
Expand Down

0 comments on commit 11342ad

Please sign in to comment.