Sfoglia il codice sorgente

add tuple and comment for prior to OTP 18

pull/1789/head
Peter Saxton 7 anni fa
committed by GitHub
parent
commit
1b02e78fae
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      priv/templates/sup.erl

+ 2
- 0
priv/templates/sup.erl Vedi File

@ -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}, []} }.

Caricamento…
Annulla
Salva