Skip to content

Commit

Permalink
rebar_dialyzer_format: Fix typo race_conditions
Browse files Browse the repository at this point in the history
The value was deleted is OTP-25 but it was supposed to be
`race_conditions` and not `race_condition`
  • Loading branch information
gonzalobf committed Feb 23, 2023
1 parent 9aa9f87 commit 35466b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/rebar/src/rebar_dialyzer_format.erl
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@ message_to_string({opaque_call, [M, F, Args, Culprit, OpaqueType]}) ->
fmt("~!^The call ~!!~ts:~ts~ts~!^ breaks the opaqueness of the term~!!"
" ~ts :: ~ts", [M, F, Args, Culprit, OpaqueType]);
%%----- Warnings for concurrency errors --------------------
message_to_string({race_condition, [M, F, Args, Reason]}) ->
% race_conditions was deleted in OTP-25
% https://github.com/erlang/otp/pull/5502
message_to_string({race_conditions, [M, F, Args, Reason]}) ->
fmt("~!^The call ~!!~w:~w~ts ~ts", [M, F, Args, Reason]);
%%----- Warnings for behaviour errors --------------------
message_to_string({callback_type_mismatch, [B, F, A, ST, CT]}) ->
Expand Down

0 comments on commit 35466b1

Please sign in to comment.