Skip to content

Commit 6008cbf

Browse files
authored
Merge pull request statecharts#14 from carloslfu/master
Fix some typos
2 parents 2087912 + 780d29a commit 6008cbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

use-case-statecharts-in-user-interfaces.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ var stateMachine = new xstate.Machine({
146146
147147
One thing to note is that in state machines, and statecharts, events are given explicit names. For our simple example I called the event `change`.
148148
149-
Now, this `stateMachine` variable provides a _pure functional_ interface to the state machine. This means that this state machine cannot and wiil not have side effects. Every time you use it, you tell it what the "current" state is, the event (what "happens"), and _it_ tells you what happened.
149+
Now, this `stateMachine` variable provides a _pure functional_ interface to the state machine. This means that this state machine cannot and will not have side effects. Every time you use it, you tell it what the "current" state is, the event (what "happens"), and _it_ tells you what happened.
150150
151151
We start off our state machine by asking the state machine what the "initial" state is:
152152
@@ -357,7 +357,7 @@ We now have a lot of the building blocks in order to make efficient use of state
357357
* Tells us what activities to start and stop
358358
* Tells us "what state" it's in
359359
360-
But harnessing these building blocks is for another page, but to start you off with som exercises, you can try a few things:
360+
But harnessing these building blocks is for another page, but to start you off with some exercises, you can try a few things:
361361
362362
* Introduce a new state ("red") and when you get results back from the "server", transition to it instead. Add some CSS for it too.
363363
* Add a guard condition that checks the data coming back from the server, and go to the red or not_green states accordingly

0 commit comments

Comments
 (0)