@@ -19,7 +19,7 @@ extension Reducer {
1919 /// var body: some Reducer<State, Action> {
2020 /// BindingReducer()
2121 /// .onChange(
22- /// of: { ($0.userSettings.isHapticFeedbackEnabled, $0.userSettings.isPushEnabled) },
22+ /// of: { ($0.userSettings.isHapticFeedbackEnabled, $0.userSettings.isPushEnabled) },
2323 /// removeDuplicates: ==
2424 /// ) { oldValue, newValue in
2525 /// Reduce { state, action in
@@ -42,8 +42,8 @@ extension Reducer {
4242 ///
4343 /// - Parameters:
4444 /// - toValue: A closure that returns a value from the given state.
45- /// - predicate : A closure to evaluate whether two elements are equivalent, for purposes
46- /// of filtering. Return `true` from this closure to indicate that the second element is a
45+ /// - isDuplicate : A closure to evaluate whether two elements are equivalent, for purposes of
46+ /// filtering. Return `true` from this closure to indicate that the second element is a
4747 /// duplicate of the first.
4848 /// - reducer: A reducer builder closure to run when the value changes.
4949 /// - oldValue: The old value that failed the comparison check.
@@ -52,7 +52,7 @@ extension Reducer {
5252 @inlinable
5353 public func onChange< V, R: Reducer > (
5454 of toValue: @escaping ( State ) -> V ,
55- removeDuplicates predicate : @escaping ( V , V ) -> Bool ,
55+ removeDuplicates isDuplicate : @escaping ( V , V ) -> Bool ,
5656 @ReducerBuilder < State , Action > _ reducer: @escaping ( _ oldValue: V , _ newValue: V ) -> R
5757 ) -> _OnChangeReducer < Self , V , R > {
5858 _OnChangeReducer ( base: self , toValue: toValue, predicate: predicate, reducer: reducer)
0 commit comments