Skip to content

Commit

Permalink
Fix typo in transitions validation examples (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebz authored Nov 8, 2022
1 parent e3e65ee commit d6f0795
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ defmodule App.StateMachine do


def before_transition(%{data: nil}, _initial_state, "four") do
{:error, "cannot reacth state four without data"}
{:error, "cannot reach state four without data"}
end
end
```
Expand All @@ -117,7 +117,7 @@ Usage:
struct = %App.StateMachine{state: "two", data: nil}

Fsmx.transition(struct, "four")
# {:error, "cannot react state four without data"}
# {:error, "cannot reach state four without data"}
```

### Decoupling logic from data
Expand Down Expand Up @@ -145,7 +145,7 @@ defmodule App.BusinessLogic do
end

def before_transition(%{data: nil}, _initial_state, "four") do
{:error, "cannot reacth state four without data"}
{:error, "cannot reach state four without data"}
end
end
```
Expand Down

0 comments on commit d6f0795

Please sign in to comment.