From 2f1db5e0632bf64e51ed972f54860a209993e331 Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Tue, 11 Nov 2014 17:56:44 +0000 Subject: Update plugin templates and doc to use template --- priv/templates/plugin.erl.dtl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'priv') diff --git a/priv/templates/plugin.erl.dtl b/priv/templates/plugin.erl.dtl index df92cf6..af85d7f 100644 --- a/priv/templates/plugin.erl.dtl +++ b/priv/templates/plugin.erl.dtl @@ -20,7 +20,7 @@ init(State) -> {deps, ?DEPS}, % The list of dependencies {example, "rebar {{name}}"}, % How to use the plugin {opts, []} % list of options understood by the plugin - {short_desc, {{desc}}}, + {short_desc, "{{desc}}"}, {desc, ""} ]), {ok, rebar_state:add_provider(State, Provider)}. @@ -30,7 +30,7 @@ init(State) -> do(State) -> {ok, State}. --spec format_error(any(), rebar_state:t()) -> {iolist(), rebar_state:t()}. +-spec format_error(any()) -> iolist(). format_error(Reason, State) -> - {io_lib:format("~p", [Reason]), State}. + io_lib:format("~p", [Reason]). -- cgit v1.1