Skip to content

Commit fce8c53

Browse files
stephencelismluisbrown
authored andcommitted
Fix CaseLet docs (#850)
1 parent fc070e4 commit fce8c53

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/ComposableArchitecture/SwiftUI/SwitchStore.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383
/// matches a particular case.
8484
///
8585
/// - Parameters:
86-
/// - toLocalState: A case path that can extract a case of switch store state.
86+
/// - toLocalState: A function that can extract a case of switch store state, which can be
87+
/// specified using case path literal syntax, _e.g._ `/State.case`.
8788
/// - fromLocalAction: A function that can embed a case action in a switch store action.
8889
/// - content: A function that is given a store of the given case's state and returns a view
8990
/// that is visible only when the switch store's state matches.
@@ -114,7 +115,8 @@ extension CaseLet where GlobalAction == LocalAction {
114115
/// matches a particular case.
115116
///
116117
/// - Parameters:
117-
/// - toLocalState: A case path that can extract a case of switch store state.
118+
/// - toLocalState: A function that can extract a case of switch store state, which can be
119+
/// specified using case path literal syntax, _e.g._ `/State.case`.
118120
/// - content: A function that is given a store of the given case's state and returns a view
119121
/// that is visible only when the switch store's state matches.
120122
public init(

0 commit comments

Comments
 (0)