aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-03-01 08:31:58 +0100
committerRaimo Niskanen <[email protected]>2016-03-02 08:21:56 +0100
commit9dfb4e6cf574870ac6e6a5a2a507c989c64e7525 (patch)
tree04fca4bcdfefa8ea4b960b07b324f266baba600d /lib/stdlib/src
parenta0c69303c971b4c65e5cd450dbe7de680aa58181 (diff)
downloadotp-9dfb4e6cf574870ac6e6a5a2a507c989c64e7525.tar.gz
otp-9dfb4e6cf574870ac6e6a5a2a507c989c64e7525.tar.bz2
otp-9dfb4e6cf574870ac6e6a5a2a507c989c64e7525.zip
Change code_change/4 to {ok,State,Data}
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/gen_statem.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/src/gen_statem.erl b/lib/stdlib/src/gen_statem.erl
index 17d361efc2..cc09efc140 100644
--- a/lib/stdlib/src/gen_statem.erl
+++ b/lib/stdlib/src/gen_statem.erl
@@ -200,7 +200,7 @@
OldState :: state(),
OldData :: data(),
Extra :: term()) ->
- {ok, {NewState :: state(), NewData :: data()}}.
+ {ok, NewState :: state(), NewData :: data()}.
%% Format the callback module state in some sensible that is
%% often condensed way. For StatusOption =:= 'normal' the perferred
@@ -619,7 +619,7 @@ system_code_change(
Result -> Result
end
of
- {ok,{NewState,NewData}} ->
+ {ok,NewState,NewData} ->
{ok,
S#{
state := NewState,