Skip to content

Commit c3e4bdc

Browse files
authored
Readme fixes (#107)
* remove additional parenthesis * conform AppState to Equatable
1 parent dc8ed21 commit c3e4bdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ As a basic example, consider a UI that shows a number along with "+" and "−" b
7272
The state of this feature would consist of an integer for the current count, as well as an optional string that represents the title of the alert we want to show (optional because `nil` represents not showing an alert):
7373

7474
```swift
75-
struct AppState {
75+
struct AppState: Equatable {
7676
var count = 0
7777
var numberFactAlert: String?
7878
}
@@ -218,7 +218,7 @@ It is also straightforward to have a UIKit controller driven off of this store.
218218
)
219219
)
220220
self?.present(alertController, animated: true, completion: nil)
221-
})
221+
}
222222
.store(in: &self.cancellables)
223223
}
224224

0 commit comments

Comments
 (0)