Skip to content

Commit

Permalink
Quote maybe atom
Browse files Browse the repository at this point in the history
  • Loading branch information
sile committed Nov 1, 2023
1 parent 4e417c0 commit 5ad4696
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ra_log.erl
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ next_index(#?MODULE{last_index = LastIdx}) ->
LastIdx + 1.

-spec fetch(ra_index(), state()) ->
{maybe(log_entry()), state()}.
{'maybe'(log_entry()), state()}.
fetch(Idx, State0) ->
case fold(Idx, Idx, fun(E, Acc) -> [E | Acc] end, [], State0) of
{[], State} ->
Expand Down
4 changes: 2 additions & 2 deletions src/ra_log_segment.erl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
data_start :: pos_integer(),
data_offset :: pos_integer(),
data_write_offset :: pos_integer(),
index = undefined :: maybe(ra_segment_index()),
index = undefined :: 'maybe'(ra_segment_index()),
range :: 'maybe'({ra_index(), ra_index()}),
pending_data = [] :: iodata(),
pending_index = [] :: iodata(),
Expand Down Expand Up @@ -367,7 +367,7 @@ fold0(Cfg, Cache0, Idx, FinalIdx, Index, Fun, AccFun, Acc0) ->
Cfg#cfg.filename})
end.

-spec range(state()) -> maybe({ra_index(), ra_index()}).
-spec range(state()) -> 'maybe'({ra_index(), ra_index()}).
range(#state{range = Range}) ->
Range.

Expand Down

0 comments on commit 5ad4696

Please sign in to comment.