Skip to content

Commit

Permalink
Merge pull request #668 from fig/patch-1
Browse files Browse the repository at this point in the history
Update rules.html.md
  • Loading branch information
solnic authored Sep 4, 2020
2 parents 8f03f50 + fbf3798 commit b69232f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docsite/source/rules.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class DistanceContract < Dry::Validation::Contract
end

rule(:kilometers, :miles) do
if key?(:kilometers) ^ key?(:miles)
if key?(:kilometers) && key?(:miles)
base.failure("must only contain one of: kilometers, miles")
end
end
Expand Down

0 comments on commit b69232f

Please sign in to comment.