More correct spec for pkt

This commit is contained in:
Carlos Martín Nieto
2013-06-05 00:18:00 +02:00
parent 8eaad74c3a
commit 370acd05ce

View File

@@ -15,7 +15,7 @@ line(Text) ->
Prefix = io_lib:format("~4.16.0b", [Len]),
[Prefix, Text, "\n"].
-spec parse(iolist()) -> {{want | have, geef_oid()}, binary()}.
-spec parse(iolist()) -> {{want | have, geef_oid()}, binary()} | {error, ebufs}.
parse(In) ->
case unpack(In) of
Err = {error, ebufs} ->