Skip to content

Commit

Permalink
Add an example with an initial state in the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreDecan committed Jan 21, 2016
1 parent eb29ed1 commit d576849
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,20 @@ Such a state is commonly called a *composite state*.
states:
- name: nested state 2a
A composite state can define its initial state using *initial*.

.. code:: yaml
- name: composite state
initial: nested state 1
states:
- name: nested state 1
- name: nested state 2
initial: nested state a2
states:
- name: nested state 2a
Regions
*******

Expand Down

0 comments on commit d576849

Please sign in to comment.