Explorar el Código

update readme provider

pull/358/head
Tristan Sloughter hace 10 años
padre
commit
390d1afb77
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. +6
    -1
      README.md

+ 6
- 1
README.md Ver fichero

@ -73,7 +73,8 @@ Example:
-behaviour(rebar_provider).
-export([init/1,
do/1]).
do/1,
format_error/1]).
-define(PROVIDER, something).
-define(DEPS, []).
@ -98,6 +99,10 @@ init(State) ->
do(State) ->
%% Do something
{ok, State}.
-spec format_error(any()) -> iolist().
format_error(Reason) ->
io_lib:format("~p", [Reason]).
```

Cargando…
Cancelar
Guardar