Skip to content

Commit

Permalink
doc: modify README
Browse files Browse the repository at this point in the history
  • Loading branch information
tu6ge committed May 30, 2024
1 parent 3b982ea commit bf41652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ fn age_limit(n: &mut u8) -> Result<(), Message> {
```
## Example 2
```rust
use valitron::register::string::Validator;
impl Input {
fn new(mut input: Input) -> Result<Self, Validator<Message>> {
use valitron::register::string::Validator;
let valid = Validator::new()
.insert("name", &mut input.name, Trim.and(Required))
.insert("email", &mut input.email, Trim.and(Required).and(Email))
Expand Down

0 comments on commit bf41652

Please sign in to comment.