[erlang-questions] Erlang type spec questions

zxq9 zxq9@REDACTED
Thu Oct 15 01:34:35 CEST 2015

On 2015年10月15日 木曜日 08:23:39 zxq9 wrote:
> When the spec gets even slightly too long for a single line I tend to do this:
> -spec open_read(Table, Type) -> {ok, Name} | {error, Reason}.
>     when Table  :: ets:tab(),
>          Type   :: atom(),
>          Name   :: unicode:chardata(),
>          Reason :: term().

GAH! I am a horrible person.
I forgot to remove the period at the end of the first line.


More information about the erlang-questions mailing list