From 11342ad0b9c8d023e324e5b6d5eb400059dfe848 Mon Sep 17 00:00:00 2001 From: naticaceres Date: Sat, 3 Dec 2022 13:28:40 -0500 Subject: [PATCH] docs(operators): fixing a typo (#7086) There seems to be a typo in this doc, ... received so ~var~ -> ... received so _far_ --- src/internal/operators/scan.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);