From 1ad41d2b172c070b8398cce1a8da2259f3efd1b2 Mon Sep 17 00:00:00 2001 From: Gert Goet Date: Wed, 30 Aug 2023 15:17:19 +0200 Subject: [PATCH] Fix typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5d348819b..7a2af0607 100644 --- a/README.md +++ b/README.md @@ -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" @@ -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)