From 84a4b197a8551b387567330d8bd0ba5e4384390c Mon Sep 17 00:00:00 2001 From: Ngo The Trung Date: Sat, 23 May 2015 20:29:31 +0800 Subject: [PATCH] Fixed 'supervisor' snippet --- snippets/erlang.snippets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/erlang.snippets b/snippets/erlang.snippets index 2a0d1a4..18f1c6d 100644 --- a/snippets/erlang.snippets +++ b/snippets/erlang.snippets @@ -103,8 +103,8 @@ snippet supervisor supervisor:start_link({local, ?SERVER}, ?MODULE, []). init([]) -> - Server = {${0:my_server}, {$2, start_link, []}, - permanent, 2000, worker, [$2]}, + Server = {${0:my_server}, {${2}, start_link, []}, + permanent, 2000, worker, [${2}]}, Children = [Server], RestartStrategy = {one_for_one, 0, 1}, {ok, {RestartStrategy, Children}}.