From 1b02e78fae8a50b77a7b68544f00208353a23cb3 Mon Sep 17 00:00:00 2001 From: Peter Saxton Date: Sun, 20 May 2018 16:11:21 +0100 Subject: add tuple and comment for prior to OTP 18 --- priv/templates/sup.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'priv') 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}, []} }. -- cgit v1.1