Skip to content

Commit 8bb4883

Browse files
committed
updated README.md
1 parent 76a7933 commit 8bb4883

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ No external dependencies except STL
4646

4747
## Usages
4848

49-
A simple state machine is:
49+
Here is a simple state machine:
5050

5151
```cpp
5252
#include <fsm_cxx.hh>
@@ -79,7 +79,7 @@ namespace fsm_cxx { namespace test {
7979
};
8080

8181
void test_state_meta() {
82-
machine_t<my_state> m;
82+
fsm_cxx::machine_t<my_state> m;
8383
using M = decltype(m);
8484

8585
// @formatter:off
@@ -115,7 +115,7 @@ namespace fsm_cxx { namespace test {
115115
.build();
116116
// @formatter:on
117117

118-
m.on_error([](Reason reason, M::State const &, M::Context &, M::Event const &, M::Payload const &) {
118+
m.on_error([](fsm_cxx::Reason reason, M::State const &, M::Context &, M::Event const &, M::Payload const &) {
119119
std::cout << " Error: reason = " << reason << '\n';
120120
});
121121

@@ -128,7 +128,7 @@ namespace fsm_cxx { namespace test {
128128
// processing
129129

130130
m.step_by(begin{});
131-
if (!m.step_by(open{}, payload_t{false}))
131+
if (!m.step_by(open{}, fsm_cxx::payload_t{false}))
132132
std::cout << " E. cannot step to next with a false payload\n";
133133
m.step_by(open{});
134134
m.step_by(close{});
@@ -145,7 +145,7 @@ int main() {
145145
}
146146
```
147147

148-
## For Developer
148+
## How to Contribute
149149

150150

151151

0 commit comments

Comments
 (0)