@@ -147,8 +147,9 @@ extension AsyncSequence {
147147 /// elements of an entire sequence. For example, you can use this method on a
148148 /// sequence of numbers to find their sum or product.
149149 ///
150- /// The `nextPartialResult` closure executes sequentially with an accumulating
151- /// value initialized to `initialResult` and each element of the sequence.
150+ /// The `updateAccumulatingResult` closure executes sequentially with an
151+ /// accumulating value initialized to `initialResult` and each element of the
152+ /// sequence.
152153 ///
153154 /// Prefer this method over `reduce(_:_:)` for efficiency when the result is
154155 /// a copy-on-write type, for example an `Array` or `Dictionary`.
@@ -157,10 +158,10 @@ extension AsyncSequence {
157158 /// - initialResult: The value to use as the initial accumulating value.
158159 /// The `nextPartialResult` closure receives `initialResult` the first
159160 /// time the closure executes.
160- /// - nextPartialResult : A closure that combines an accumulating value and
161- /// an element of the asynchronous sequence into a new accumulating value,
162- /// for use in the next call of the `nextPartialResult` closure or
163- /// returned to the caller.
161+ /// - updateAccumulatingResult : A closure that combines an accumulating
162+ /// value and an element of the asynchronous sequence into a new
163+ /// accumulating value, for use in the next call of the
164+ /// `nextPartialResult` closure or returned to the caller.
164165 /// - Returns: The final accumulated value. If the sequence has no elements,
165166 /// the result is `initialResult`.
166167 @inlinable
0 commit comments