瀏覽代碼

add tuple and comment for prior to OTP 18

pull/1789/head
Peter Saxton 7 年之前
committed by GitHub
父節點
當前提交
1b02e78fae
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      priv/templates/sup.erl

+ 2
- 0
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}, []} }.

Loading…
取消
儲存