From c974eb741240c644fe39b0bc80533a5cb374c48a Mon Sep 17 00:00:00 2001 From: Michael C McGuire Date: Mon, 6 Jul 2015 14:54:05 -0700 Subject: [PATCH] Fix documentation for scan operator --- ReactiveCocoa/Swift/Signal.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactiveCocoa/Swift/Signal.swift b/ReactiveCocoa/Swift/Signal.swift index 1bab364e..0c3fcf1d 100644 --- a/ReactiveCocoa/Swift/Signal.swift +++ b/ReactiveCocoa/Swift/Signal.swift @@ -572,7 +572,7 @@ public func reduce(initial: U, combine: (U, T) -> U) -> Signal -> /// Aggregates `signal`'s values into a single combined value. When `signal` emits /// its first value, `combine` is invoked with `initial` as the first argument and /// that emitted value as the second argument. The result is emitted from the -/// signal returned from `reduce`. That result is then passed to `combine` as the +/// signal returned from `scan`. That result is then passed to `combine` as the /// first argument when the next value is emitted, and so on. public func scan(initial: U, combine: (U, T) -> U) -> Signal -> Signal { return { signal in