diff --git a/src/internal/operators/scan.ts b/src/internal/operators/scan.ts index e97e967e59..ce30695cdc 100644 --- a/src/internal/operators/scan.ts +++ b/src/internal/operators/scan.ts @@ -44,7 +44,7 @@ export function scan(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);