Skip to content

Commit

Permalink
fix: doc test.
Browse files Browse the repository at this point in the history
  • Loading branch information
yassun7010 committed Jan 8, 2024
1 parent d2f5c02 commit 84d97a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serde_valid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ fn sample_validation(val1: i32, val2: &str) -> Result<(), serde_valid::validatio
}

#[derive(Validate)]
#[validate(custom(|s| sample_validation(s.val1, &s.val2)))]
struct SampleStruct {
#[validate(custom(|s| sample_validation(s.val1, &s.val2)))]
val1: i32,
val2: String,
}
Expand Down

0 comments on commit 84d97a7

Please sign in to comment.