Merge pull request #298 from rkudryashov/fix_doc

Fix custom scalars doc
This commit is contained in:
Sunli 2020-10-04 20:12:40 +08:00 committed by GitHub
commit 0fe5faf724
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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))
}
}