Closed robertbasden closed 6 years ago
A few tweaks to README / comments to update them to reflect the new Result return from validate.
Result
validate
Previously this would just return a list of validation errors but this is now wrapped in Result and (if valid) Valid
Valid
Nice!
Would you mind changing it to Ok and Err instead of Result.Ok and Result.Err? The former is the way I most commonly see those written. 😄
Ok
Err
Result.Ok
Result.Err
No problem! Have amended and pushed the update 👍
A few tweaks to README / comments to update them to reflect the new
Result
return fromvalidate
.Previously this would just return a list of validation errors but this is now wrapped in
Result
and (if valid)Valid