Skip to content

Commit 34d021a

Browse files
Jager-yoop4checo
authored andcommitted
Fix typos in new Reducer Protocol README (#1475)
(cherry picked from commit 4fdc8a95d67a42106fa8811a0c7f1fd2bf5aed03)
1 parent dcc57af commit 34d021a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ It is also straightforward to have a UIKit controller driven off of this store.
271271
```
272272
</details>
273273

274-
Once we are ready to display this view, for example in the app's entry point, we can construct a store. This can be done by specify the initial state to start the application in, as well as the reducer that will power the application:
274+
Once we are ready to display this view, for example in the app's entry point, we can construct a store. This can be done by specifying the initial state to start the application in, as well as the reducer that will power the application:
275275

276276
```swift
277277
@main
@@ -329,7 +329,7 @@ await store.receive(.numberFactResponse(.success(???))) {
329329

330330
However, how do we know what fact is going to be sent back to us?
331331

332-
Currently our reducer is using an effect that reaches out into the real world to hit an API server, and that means we have no way to control its behavior. We are at the whims of our internet connectivity and the availabilty of the API server in order to write this test.
332+
Currently our reducer is using an effect that reaches out into the real world to hit an API server, and that means we have no way to control its behavior. We are at the whims of our internet connectivity and the availability of the API server in order to write this test.
333333

334334
It would be better for this dependency to be passed to the reducer so that we can use a live dependency when running the application on a device, but use a mocked dependency for tests. We can do this by adding a property to the `Feature` reducer:
335335

@@ -371,7 +371,7 @@ struct MyApp: App {
371371
}
372372
```
373373

374-
But in tests we can use a mock dependency that immediately returns a determinstic, predictable fact:
374+
But in tests we can use a mock dependency that immediately returns a deterministic, predictable fact:
375375

376376
```swift
377377
@MainActor
@@ -515,7 +515,7 @@ You can add ComposableArchitecture to an Xcode project by adding it as a package
515515
2. Enter "https://github.com/pointfreeco/swift-composable-architecture" into the package repository URL text field
516516
3. Depending on how your project is structured:
517517
- If you have a single application target that needs access to the library, then add **ComposableArchitecture** directly to your application.
518-
- If you want to use this library from multiple Xcode targets, or mixing Xcode targets and SPM targets, you must create a shared framework that depends on **ComposableArchitecture** and then depend on that framework in all of your targets. For an example of this, check out the [Tic-Tac-Toe](./Examples/TicTacToe) demo application, which splits lots of features into modules and consumes the static library in this fashion using the **tic-tac-toe** Swift package.
518+
- If you want to use this library from multiple Xcode targets, or mix Xcode targets and SPM targets, you must create a shared framework that depends on **ComposableArchitecture** and then depend on that framework in all of your targets. For an example of this, check out the [Tic-Tac-Toe](./Examples/TicTacToe) demo application, which splits lots of features into modules and consumes the static library in this fashion using the **tic-tac-toe** Swift package.
519519

520520
## Help
521521

0 commit comments

Comments
 (0)