diff --git a/src/syn.erl b/src/syn.erl index d7054019..ed2d8267 100755 --- a/src/syn.erl +++ b/src/syn.erl @@ -399,7 +399,7 @@ whereis_name(Scope, Name) -> end. %% @private --spec send(Name :: term(), Message :: term()) -> pid(). +-spec send(Name :: term(), Message :: term()) -> pid() | {badarg, term()}. send(Tuple, Message) -> case whereis_name(Tuple) of undefined ->