Skip to content

Commit

Permalink
Fixed RST syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
nazavode committed Sep 30, 2015
1 parent 460f38d commit f098219
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ The goal here is to have something minimal to enforce correctness and to avoid c

In order to define an automaton, just subclass a provided base:

from automaton import *

class TrafficLight(Automaton):

go = Event("red", "green")
slowdown = Event("green", "yellow")
stop = Event("yellow", "red")
>>> from automaton import *
>>>
>>> class TrafficLight(Automaton):
>>>
>>> go = Event("red", "green")
>>> slowdown = Event("green", "yellow")
>>> stop = Event("yellow", "red")

You're done: you now have a new *automaton* definition that can be instantiated and used as a state machine:

Expand Down

0 comments on commit f098219

Please sign in to comment.