Skip to content

Commit

Permalink
fix: extra maybes
Browse files Browse the repository at this point in the history
  • Loading branch information
kivra-pergus committed Jul 15, 2024
1 parent 0af3e44 commit 961eb41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/s2_loop.erl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ for_test() ->
-endif.


-spec retry(fun()) -> maybe(_, _).
-spec retry(fun()) -> 'maybe'(_, _).
%% @doc Call F every T milliseconds until it returns ok.
%% Abort after N retries unless N is infinity.
%% Note that F is called at least once.
Expand Down
2 changes: 1 addition & 1 deletion src/s2_procs.erl
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ send(Proc, Msg0) ->
{'EXIT', {badarg, _}} -> {error, no_such_process}
end.

-spec recv(proc()) -> maybe(_, _).
-spec recv(proc()) -> 'maybe'(_, _).
%% @doc recv(Proc) is the next message received from Proc.
recv(Proc) ->
recv(Proc, infinity).
Expand Down
2 changes: 1 addition & 1 deletion src/s2_sh.erl
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ temp_name_test() -> "/tmp/prefix" ++ N = temp_name("/tmp", "prefix"),
eval(Fmt, Args) ->
eval(lists:flatten(io_lib:format(Fmt, Args))).

-spec eval(string()) -> maybe(string(), {non_neg_integer(), string()}).
-spec eval(string()) -> 'maybe'(string(), {non_neg_integer(), string()}).
eval(Cmd) ->
s2_fs:with_temp_file(fun(F) ->
S0 = os:cmd(io_lib:format("~s > ~s 2>&1; echo $?", [Cmd, F])),
Expand Down

0 comments on commit 961eb41

Please sign in to comment.