Skip to content

Commit

Permalink
fix syntax error (#2731)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryu0118 authored Jan 28, 2024
1 parent fd49eb2 commit 30ab89d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ IfLetStore(store: store.scope(state: \.child, action: \.child)) { childStore in
This can now be updated to use plain `if let` syntax with ``Store/scope(state:action:)-36e72``:

```swift
if let childStore = store.scope(state: \.child, action: \.child)) {
if let childStore = store.scope(state: \.child, action: \.child) {
ChildView(store: childStore)
} else {
Text("Nothing to show")
Expand Down

0 comments on commit 30ab89d

Please sign in to comment.