Skip to content

Commit a99e510

Browse files
committed
Fix typos in fizzbuzz-actions-internal-events.md
1 parent 2087912 commit a99e510

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fizzbuzz-actions-internal-events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ The xstate equivalent of `in fizz.off and buzz.off` is one that uses a `cond:` e
202202
}
203203
```
204204

205-
This new state machine correcly handles the 'fizz' and 'buzz' cases.
205+
This new state machine correctly handles the 'fizz' and 'buzz' cases.
206206

207207
<p data-height="455" data-theme-id="light" data-slug-hash="zLzLNB" data-default-tab="js" data-user="mogsie" data-embed-version="2" data-pen-title="FizzBuzz with actions and internal events 4: Fizz and buzz" class="codepen">See the Pen <a href="https://codepen.io/mogsie/pen/zLzLNB/">FizzBuzz with actions and internal events 4: Fizz and buzz</a> by Erik Mogensen (<a href="https://codepen.io/mogsie">@mogsie</a>) on <a href="https://codepen.io">CodePen</a>.</p>
208208

@@ -223,7 +223,7 @@ One way to do this is to refine the fizz.on and buzz.on states. We can use the
223223
**A closeup of the fizz region. When fizz.on, it waits for buzz to reach off before invoking the print action.**{:.caption}![An on state, initial substate called maybe, with an automatic transition to the really_on state, guarded with 'in buzz.off'](fizzbuzz-actions-internal-events-parallel-fizz-maybe-closeup.svg)
224224

225225
{:.note}
226-
Instead of fizz.on checking if buzz.was reached, it might be smarter (perhaps more maintainable) to check if _fizzbuzz.on_ is reached. After all, fizzbuzz.on is already a function of being in both fizz.on and buzz.on, and re-using that knowledge might be more _correct_ than repeating that knowledge in these new guarded transitions.
226+
Instead of fizz.on checking if buzz.off was reached, it might be smarter (perhaps more maintainable) to check if _fizzbuzz.on_ is reached. After all, fizzbuzz.on is already a function of being in both fizz.on and buzz.on, and re-using that knowledge might be more _correct_ than repeating that knowledge in these new guarded transitions.
227227

228228
When all of this is added to the statechart, this is the final result:
229229

0 commit comments

Comments
 (0)