diff --git a/priv/templates/sup.erl b/priv/templates/sup.erl index a2e72098..0db7155b 100644 --- a/priv/templates/sup.erl +++ b/priv/templates/sup.erl @@ -26,6 +26,9 @@ start_link() -> %% Supervisor callbacks %%==================================================================== +%% Child :: #{id => Id, start => {M, F, A}} +%% Optional keys are restart, shutdown, type, modules. +%% Before OTP 18 tuples must be used to specify a child. e.g. %% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules} init([]) -> {ok, { {one_for_all, 0, 1}, []} }.