Skip to content

Commit 81e61f8

Browse files
authored
Replace deprecated optional with optional() (#339)
1 parent 2b8fb04 commit 81e61f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/ComposableArchitecture/Reducer.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)