diff options
Diffstat (limited to 'priv/templates')
-rw-r--r-- | priv/templates/sup.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/priv/templates/sup.erl b/priv/templates/sup.erl index e2fa05e..0db7155 100644 --- a/priv/templates/sup.erl +++ b/priv/templates/sup.erl @@ -28,6 +28,8 @@ start_link() -> %% 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}, []} }. |