aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/gen_statem.erl
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-10-23 20:46:49 +0200
committerRaimo Niskanen <[email protected]>2016-10-24 10:41:03 +0200
commit731cee0b06917f7b34b7e75700cb75605d7ebd32 (patch)
treed1f17f97d449d9ddef9daaa6233e5cb5ca0ab3de /lib/stdlib/src/gen_statem.erl
parentad2c3de34f2452378b5c550ddc0795a1fe6efe4c (diff)
downloadotp-731cee0b06917f7b34b7e75700cb75605d7ebd32.tar.gz
otp-731cee0b06917f7b34b7e75700cb75605d7ebd32.tar.bz2
otp-731cee0b06917f7b34b7e75700cb75605d7ebd32.zip
Fix doc and type for state enter calls
Diffstat (limited to 'lib/stdlib/src/gen_statem.erl')
-rw-r--r--lib/stdlib/src/gen_statem.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/stdlib/src/gen_statem.erl b/lib/stdlib/src/gen_statem.erl
index 17d1ebecec..a314f43b42 100644
--- a/lib/stdlib/src/gen_statem.erl
+++ b/lib/stdlib/src/gen_statem.erl
@@ -154,12 +154,12 @@
-type handle_event_result() ::
event_handler_result(state()).
%%
--type state_enter_result(StateType) ::
+-type state_enter_result(State) ::
{'next_state', % {next_state,NextState,NewData,[]}
- State :: StateType,
+ State,
NewData :: data()} |
{'next_state', % State transition, maybe to the same state
- State :: StateType,
+ State,
NewData :: data(),
Actions :: [enter_action()] | enter_action()} |
state_callback_result(enter_action()).
@@ -231,9 +231,9 @@
-callback handle_event(
'enter',
OldState :: state(),
- State :: state(), % Current state
+ State, % Current state
Data :: data()) ->
- state_enter_result(state());
+ state_enter_result(State);
(event_type(),
EventContent :: term(),
State :: state(), % Current state