Make dialyzer happy

This commit is contained in:
Carlos Martín Nieto
2013-07-31 05:00:23 +02:00
parent 5e0aba3458
commit 73f31eac2f
8 changed files with 17 additions and 12 deletions

View File

@@ -15,7 +15,7 @@ hex(#geef_oid{oid=Oid}) ->
geef_nif:oid_fmt(Oid).
%% @doc Parse an iolist as a hash
-spec parse(iolist()) -> geef_oid().
-spec parse(iolist() | binary()) -> geef_oid().
parse(Sha) ->
Oid = geef_nif:oid_parse(Sha),
#geef_oid{oid=Oid}.