Fix custom scalars doc

This commit is contained in:
Roman Kudryashov 2020-10-04 12:21:53 +03:00
parent 22f7e09537
commit 71fa94392a
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ impl ScalarType for StringNumber {
Ok(value.parse().map(StringNumber)?)
} else {
// If the type does not match
Err(InputValueError::ExpectedType(value))
Err(InputValueError::expected_type(value))
}
}

View File

@ -20,7 +20,7 @@ impl ScalarType for StringNumber {
Ok(value.parse().map(StringNumber)?)
} else {
// 类型不匹配
Err(InputValueError::ExpectedType(value))
Err(InputValueError::expected_type(value))
}
}