aboutsummaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorBoris Mühmer <boris.muehmer@gmail.com>2013-11-09 06:23:52 +0100
committerBoris Mühmer <boris.muehmer@gmail.com>2013-11-09 06:23:52 +0100
commite082d88bbf07d1a27bd46f15a387d5492d5e16fc (patch)
tree965870d837c2d05af3f2debd2ab3c0c3b48be4be /system
parent768a64354e3d69b3c0840a84dd072601c67ca39d (diff)
downloadotp-e082d88bbf07d1a27bd46f15a387d5492d5e16fc.tar.gz
otp-e082d88bbf07d1a27bd46f15a387d5492d5e16fc.tar.bz2
otp-e082d88bbf07d1a27bd46f15a387d5492d5e16fc.zip
fixed small typo (missing right parenthesis) in gen_fsm example
Diffstat (limited to 'system')
-rw-r--r--system/doc/design_principles/fsm.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/doc/design_principles/fsm.xml b/system/doc/design_principles/fsm.xml
index 803283b37a..f07950fae7 100644
--- a/system/doc/design_principles/fsm.xml
+++ b/system/doc/design_principles/fsm.xml
@@ -75,7 +75,7 @@ StateName(Event, StateData) ->
-export([init/1, locked/2, open/2]).
start_link(Code) ->
- gen_fsm:start_link({local, code_lock}, code_lock, lists:reverse(Code, []).
+ gen_fsm:start_link({local, code_lock}, code_lock, lists:reverse(Code), []).
button(Digit) ->
gen_fsm:send_event(code_lock, {button, Digit}).