Update index.html.md
Fixed a small discrepancy between example message "must be greater than 18" and expression `if value < 18`
This commit is contained in:
parent
dabd5d9211
commit
cc51dd708d
|
@ -45,7 +45,7 @@ class NewUserContract < Dry::Validation::Contract
|
|||
end
|
||||
|
||||
rule(:age) do
|
||||
key.failure('must be greater than 18') if value < 18
|
||||
key.failure('must be greater than 18') if value <= 18
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue