Skip to content

Commit 0680cdd

Browse files
authored
Merge pull request #1119 from metosin/fix-example
doc: fix Between example in README.md
2 parents 16623e2 + 74ccbe5 commit 0680cdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2775,7 +2775,7 @@ You can also build content-dependent schemas by using a callback function `:comp
27752775
:compile (fn [_properties [min max] _options]
27762776
(when-not (and (int? min) (int? max))
27772777
(m/-fail! ::invalid-children {:min min, :max max}))
2778-
{:pred #(and (int? %) (>= min % max))
2778+
{:pred #(and (int? %) (<= min % max))
27792779
:min 2 ;; at least 1 child
27802780
:max 2 ;; at most 1 child
27812781
:type-properties {:error/fn (fn [error _] (str "should be between " min " and " max ", was " (:value error)))

0 commit comments

Comments
 (0)