diff --git a/docsite/source/rules.html.md b/docsite/source/rules.html.md index 07a2fe1f..dc223460 100644 --- a/docsite/source/rules.html.md +++ b/docsite/source/rules.html.md @@ -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