Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
eval authored Aug 30, 2023
1 parent 30be01e commit 1ad41d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2344,7 +2344,7 @@ You can also build content-dependent schemas by using a callback function `:comp
{:pred #(and (int? %) (>= min % max))
:min 2 ;; at least 1 child
:max 2 ;; at most 1 child
:type-properties {:error/fn (fn [error _] (str "should be betweeb " min " and " max ", was " (:value error)))
:type-properties {:error/fn (fn [error _] (str "should be between " min " and " max ", was " (:value error)))
:decode/string mt/-string->long
:json-schema {:type "integer"
:format "int64"
Expand All @@ -2358,7 +2358,7 @@ You can also build content-dependent schemas by using a callback function `:comp
(-> [Between 10 20]
(m/explain 8)
(me/humanize))
; => ["should be betweeb 10 and 20, was 8"]
; => ["should be between 10 and 20, was 8"]

(mg/sample [Between -10 10])
; => (-1 0 -2 -4 -4 0 -2 7 1 0)
Expand Down

0 comments on commit 1ad41d2

Please sign in to comment.