Skip to content

Commit 0da9efa

Browse files
committed
improved wording in README (this closes #457) considering reuse of HSMs
1 parent 39df103 commit 0da9efa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ assert m.is_B(allow_substates=True)
13351335

13361336
Besides semantic order, nested states are very handy if you want to specify state machines for specific tasks and plan to reuse them.
13371337
Before *0.8.0*, a `HierarchicalMachine` would not integrate the machine instance itself but the states and transitions by creating copies of them.
1338-
However, since *0.8.0* states are just **referenced** which means changes in one machine's states will influence the other instance.
1338+
However, since *0.8.0* `(Nested)State` instances are just **referenced** which means changes in one machine's collection of states and events will influence the other machine instance. Models and their state will not be shared though.
13391339
Note that events and transitions are also copied by reference and will be shared by both instances if you do not use the `remap` keyword.
13401340

13411341
```python

0 commit comments

Comments
 (0)