Update input_value_validators.md

Typo?
This commit is contained in:
Daniel Olano 2020-07-29 19:37:52 +02:00 committed by GitHub
parent 248575f1d3
commit c564c5d5f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ Here is an example of a custom validator:
```rust
struct MustBeZero {}
impl InputValueValidator for InputValueValidator {
impl InputValueValidator for MustBeZero {
fn is_valid(&self, value: &Value) -> Option<String> {
if let Value::Int(n) = value {
if n.as_i64().unwrap() != 0 {