From 5df52cb2367d2d91f24ba021edb30046e8300d67 Mon Sep 17 00:00:00 2001 From: Ettienne Pitts Date: Wed, 5 Sep 2018 07:40:53 +0200 Subject: [PATCH] ifInvalidEmail usage within docs fixed --- src/Validate.elm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Validate.elm b/src/Validate.elm index 5ff3e34..7dda564 100644 --- a/src/Validate.elm +++ b/src/Validate.elm @@ -19,7 +19,7 @@ module Validate exposing [ ifBlank .name "Please enter a name." , Validate.firstError [ ifBlank .email "Please enter an email address." - , ifInvalidEmail .email "This is not a valid email address." + , ifInvalidEmail .email (\_ -> "This is not a valid email address.") ] , ifNotInt .age "Age must be a whole number." ] @@ -365,7 +365,7 @@ and returning it. If no errors are encountered, return `Nothing`. Validate.all [ Validate.firstError [ ifBlank .email "Please enter an email address." - , ifInvalidEmail .email "This is not a valid email address." + , ifInvalidEmail .email (\_ -> "This is not a valid email address.") ] , ifNotInt .age "Age must be a whole number." ]