Skip to content

Commit 47f753c

Browse files
Change Counter to CounterFeature in Stack Nav docs (#3670)
Afaict this was just a typo, and the example code was referring to Counter where it should have referred to CounterFeature
1 parent dd34949 commit 47f753c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/ComposableArchitecture/Documentation.docc/Articles/StackBasedNavigation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,10 @@ struct Feature {
404404

405405
@Reducer
406406
struct Path {
407-
enum State: Equatable { case counter(Counter.State) }
408-
enum Action { case counter(Counter.Action) }
407+
enum State: Equatable { case counter(CounterFeature.State) }
408+
enum Action { case counter(CounterFeature.Action) }
409409
var body: some ReducerOf<Self> {
410-
Scope(state: \.counter, action: \.counter) { Counter() }
410+
Scope(state: \.counter, action: \.counter) { CounterFeature() }
411411
}
412412
}
413413

0 commit comments

Comments
 (0)