@@ -84,7 +84,7 @@ public struct Reducer<State, Action, Environment> {
8484 ///
8585 /// let parentReducer = Reducer<ParentState, ParentAction, ParentEnvironment>.combine(
8686 /// // Combined before parent so that it can react to `.dismiss` while state is non-`nil`.
87- /// childReducer.optional.pullback(
87+ /// childReducer.optional() .pullback(
8888 /// state: \.child,
8989 /// action: /ParentAction.child,
9090 /// environment: { $0.child }
@@ -134,7 +134,7 @@ public struct Reducer<State, Action, Environment> {
134134 ///
135135 /// let parentReducer = Reducer<ParentState, ParentAction, ParentEnvironment>.combine(
136136 /// // Combined before parent so that it can react to `.dismiss` while state is non-`nil`.
137- /// childReducer.optional.pullback(
137+ /// childReducer.optional() .pullback(
138138 /// state: \.child,
139139 /// action: /ParentAction.child,
140140 /// environment: { $0.child }
@@ -187,7 +187,7 @@ public struct Reducer<State, Action, Environment> {
187187 /// let parentReducer: Reducer<ParentState, ParentAction, ParentEnvironment> =
188188 /// // Run before parent so that it can react to `.dismiss` while state is non-`nil`.
189189 /// childReducer
190- /// .optional
190+ /// .optional()
191191 /// .pullback(
192192 /// state: \.child,
193193 /// action: /ParentAction.child,
0 commit comments