summaryrefslogtreecommitdiff
path: root/priv/templates
diff options
context:
space:
mode:
authorPeter Saxton <peterhsaxton@gmail.com>2018-05-20 16:11:21 +0100
committerGitHub <noreply@github.com>2018-05-20 16:11:21 +0100
commit1b02e78fae8a50b77a7b68544f00208353a23cb3 (patch)
treede41fec90d8fc54eedddfbaa39393331b0dad7fa /priv/templates
parent6bcbbf7526a9ac426e627826f5304ed1c3051f2a (diff)
add tuple and comment for prior to OTP 18
Diffstat (limited to 'priv/templates')
-rw-r--r--priv/templates/sup.erl2
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}, []} }.