summaryrefslogtreecommitdiff
path: root/priv/templates
diff options
context:
space:
mode:
authorPeter Saxton <peterhsaxton@gmail.com>2018-05-20 15:50:48 +0100
committerGitHub <noreply@github.com>2018-05-20 15:50:48 +0100
commit6bcbbf7526a9ac426e627826f5304ed1c3051f2a (patch)
treec2bf10470c942aeca9776fd7f0202587c1b1062c /priv/templates
parent966ba72f9098ba1034cb26149a85f41dca1c4cef (diff)
Use maps for child spec example
Diffstat (limited to 'priv/templates')
-rw-r--r--priv/templates/sup.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/priv/templates/sup.erl b/priv/templates/sup.erl
index a2e7209..e2fa05e 100644
--- a/priv/templates/sup.erl
+++ b/priv/templates/sup.erl
@@ -26,7 +26,8 @@ start_link() ->
%% Supervisor callbacks
%%====================================================================
-%% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules}
+%% Child :: #{id => Id, start => {M, F, A}}
+%% Optional keys are restart, shutdown, type, modules.
init([]) ->
{ok, { {one_for_all, 0, 1}, []} }.