@@ -147,8 +147,9 @@ extension AsyncSequence {
147
147
/// elements of an entire sequence. For example, you can use this method on a
148
148
/// sequence of numbers to find their sum or product.
149
149
///
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.
152
153
///
153
154
/// Prefer this method over `reduce(_:_:)` for efficiency when the result is
154
155
/// a copy-on-write type, for example an `Array` or `Dictionary`.
@@ -157,10 +158,10 @@ extension AsyncSequence {
157
158
/// - initialResult: The value to use as the initial accumulating value.
158
159
/// The `nextPartialResult` closure receives `initialResult` the first
159
160
/// 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.
164
165
/// - Returns: The final accumulated value. If the sequence has no elements,
165
166
/// the result is `initialResult`.
166
167
@inlinable
0 commit comments