aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-02-25 15:12:48 +0100
committerRaimo Niskanen <[email protected]>2016-02-25 15:12:48 +0100
commitedc94441562b255467773ec27b11835910a708fd (patch)
tree33f0a17084a80b3af639b43872cf84c459195cad /lib/stdlib/src
parente1bbf6f1a081ff41d3287a468450bef5f65ea4ad (diff)
downloadotp-edc94441562b255467773ec27b11835910a708fd.tar.gz
otp-edc94441562b255467773ec27b11835910a708fd.tar.bz2
otp-edc94441562b255467773ec27b11835910a708fd.zip
Remove {keep_state_and_data}
Correct typo reported by Luïc Hoguin.
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/gen_statem.erl9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/stdlib/src/gen_statem.erl b/lib/stdlib/src/gen_statem.erl
index dd980daddb..e6ad7ab0be 100644
--- a/lib/stdlib/src/gen_statem.erl
+++ b/lib/stdlib/src/gen_statem.erl
@@ -156,11 +156,10 @@
Actions :: [action()] | action()} |
{'keep_state', % {keep_state,NewData,[]}
NewData :: data()} |
- {'keep_state',
+ {'keep_state', % Keep state, change data
NewData :: data(),
Actions :: [action()] | action()} |
- {'keep_state_and_data'} | % {keep_state_and_data,[]}
- {'keep_state_and_data',
+ {'keep_state_and_data', % Keep state and data -> only actions
Actions :: [action()] | action()}.
@@ -880,10 +879,6 @@ loop_event_result(
loop_event_actions(
Parent, Debug, S, Events, Event,
State, State, NewData, Actions);
- {keep_state_and_data} ->
- loop_event_actions(
- Parent, Debug, S, Events, Event,
- State, State, Data, []);
{keep_state_and_data,Actions} ->
loop_event_actions(
Parent, Debug, S, Events, Event,