From cf612d51e340f4a9cdef4738a18549e4edbeac54 Mon Sep 17 00:00:00 2001 From: gigobyte Date: Wed, 11 Jul 2018 20:05:13 +0300 Subject: [PATCH] Updated wording in the docs --- site/src/data.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site/src/data.ts b/site/src/data.ts index 0ec5f6ee..98ddbfd7 100644 --- a/site/src/data.ts +++ b/site/src/data.ts @@ -1028,7 +1028,7 @@ const data: Data = { }, { name: 'Validation', - description: 'This is a module that provides useful constructs for data validation. What makes it different than libraries that have a similar feature set is that the Validation module utilizes Either which makes it more pleasant to work with if your codebase is already using ADTs. The API is quite unopinionated making all kinds of use cases possible, from form validation to smart constructors. Although this module provides a wide variety of validation predicates, you can use any predicate you want.', + description: 'This is a module that provides useful constructs for data validation. What makes it different than libraries that have a similar feature set is that the Validation module utilizes Either which makes it more pleasant to work with if your codebase is already using ADTs. The API is quite unopinionated making all kinds of use cases possible, from form validation to smart constructors. Although this module provides a wide variety of validation predicates, you can use any predicates you want.', example: { import: `import { Validate, ifEmpty, ifJust, and, not, or ... } from 'pure-ts/utils/Validation'` }, @@ -1042,8 +1042,8 @@ const data: Data = { {input: `Validate.all('12333.34$', [ [ifEmpty, 'Please enter amount'], [ifContains('$'), 'Currency cannot be USD'], - [ifLongerThan(4), 'Please enter smaller amount'] -])`, output: `Left(['Currency cannot be USD', 'Please enter smaller amount'])`} + [ifLongerThan(4), 'Please enter lesser amount'] +])`, output: `Left(['Currency cannot be USD', 'Please enter lesser amount'])`} ] }, {