@@ -225,7 +225,7 @@ public struct Reducer<State, Action, Environment> {
225225 ///
226226 /// // Global domain that holds a local domain:
227227 /// struct AppState { var settings: SettingsState, /* rest of state */ }
228- /// struct AppAction { case settings(SettingsAction), /* other actions */ }
228+ /// enum AppAction { case settings(SettingsAction), /* other actions */ }
229229 /// struct AppEnvironment { var settings: SettingsEnvironment, /* rest of dependencies */ }
230230 ///
231231 /// // A reducer that works on the local domain:
@@ -272,7 +272,7 @@ public struct Reducer<State, Action, Environment> {
272272 ///
273273 /// // Global domain that holds an optional local domain:
274274 /// struct AppState { var modal: ModalState? }
275- /// struct AppAction { case modal(ModalAction) }
275+ /// enum AppAction { case modal(ModalAction) }
276276 /// struct AppEnvironment { var mainQueue: AnySchedulerOf<DispatchQueue> }
277277 ///
278278 /// // A reducer that works on the non-optional local domain:
@@ -334,7 +334,7 @@ public struct Reducer<State, Action, Environment> {
334334 ///
335335 /// // Global domain that holds a collection of local domains:
336336 /// struct AppState { var todos: [Todo] }
337- /// struct AppAction { case todo(index: Int, action: TodoAction) }
337+ /// enum AppAction { case todo(index: Int, action: TodoAction) }
338338 /// struct AppEnvironment { var mainQueue: AnySchedulerOf<DispatchQueue> }
339339 ///
340340 /// // A reducer that works on a local domain:
@@ -412,7 +412,7 @@ public struct Reducer<State, Action, Environment> {
412412 ///
413413 /// // Global domain that holds a collection of local domains:
414414 /// struct AppState { var todos: IdentifiedArrayOf<Todo> }
415- /// struct AppAction { case todo(id: Todo.ID, action: TodoAction) }
415+ /// enum AppAction { case todo(id: Todo.ID, action: TodoAction) }
416416 /// struct AppEnvironment { var mainQueue: AnySchedulerOf<DispatchQueue> }
417417 ///
418418 /// // A reducer that works on a local domain:
0 commit comments