aboutsummaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-11-13 07:59:58 +0100
committerFredrik Gustafsson <[email protected]>2013-11-13 07:59:58 +0100
commit4ed2425fa6e14693beac06ec176ffc918f11bc3f (patch)
tree26dc5ecb72b0f3ff6e54a3815500d0f88eafff07 /system
parent1562340596938d1f8a84b2ed43f5f0097be66ae7 (diff)
parente082d88bbf07d1a27bd46f15a387d5492d5e16fc (diff)
downloadotp-4ed2425fa6e14693beac06ec176ffc918f11bc3f.tar.gz
otp-4ed2425fa6e14693beac06ec176ffc918f11bc3f.tar.bz2
otp-4ed2425fa6e14693beac06ec176ffc918f11bc3f.zip
Merge branch 'bsmr-erlang/fix_gen_fsm_example/OTP-11472' into maint
* bsmr-erlang/fix_gen_fsm_example/OTP-11472: 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}).