[erlang-questions] Overloaded function specification and edoc

Malotte Westman Lönne malotte@REDACTED
Tue Dec 20 14:22:02 CET 2011


Hi,

When running edoc on an overloaded function specification only the first part shows up in the resulting html-file.
Am I doing something wrong or is it a bug?

CODE:
-spec init(read | write, Pid::pid(), Entry::#app_entry{}, BufSize::integer(), LLevel::integer()) -> 
		  {ok, Buf::#co_data_buf{}} |
		  {ok, Mref::reference(), Buf::#co_data_buf{}} |
		  {error, Error::atom()};
	  (read | write, Dict::term(), Entry::#dict_entry{}, BufSize::integer(), LLevel::integer()) -> 
		  {ok, Buf::#co_data_buf{}} |
		  {error, Error::atom()}.


EDOC:
init/5

init(Access::read | write, Pid::pid(), Entry::#app_entry{}, BufSize::integer(), LLevel::integer()) -> {ok, Buf::#co_data_buf{}} | {ok, Mref::reference(), Buf::#co_data_buf{}} | {error, Error::atom()}

Regards,
Malotte


More information about the erlang-questions mailing list