<div dir="ltr">Hello,<br><br>In the docs for gen_server, there for example is call/2,3, two signatures for the same base function. How do I use edoc to do something similar? Basically I want one argument to be optional without writing a @spec for each one. Here's what I have now:<br>
<br>%%===================================================================<br>%% API<br>%%===================================================================<br>%%-------------------------------------------------------------------<br>
%% @spec put(Node, Key, Value) -> Result<br>%% Result = {ok, inserted, Key} | {error, notinserted}<br>%% Key = term()<br>%% Value = term()<br>%% Node = node()<br>%% @doc Inserts a Key, Value pair into the server.<br>
%%-------------------------------------------------------------------<br>put(Key, Value) -><br> put(node(), Key, Value).<br><br>put(Node, Key, Value) -><br> gen_server:call({simpledb_svr, Node}, {insert, Key, Value}).<br>
</div>