Merge pull request #298 from rkudryashov/fix_doc
Fix custom scalars doc
This commit is contained in:
commit
0d17dc7629
|
@ -19,7 +19,7 @@ impl ScalarType for StringNumber {
|
||||||
Ok(value.parse().map(StringNumber)?)
|
Ok(value.parse().map(StringNumber)?)
|
||||||
} else {
|
} else {
|
||||||
// If the type does not match
|
// If the type does not match
|
||||||
Err(InputValueError::ExpectedType(value))
|
Err(InputValueError::expected_type(value))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ impl ScalarType for StringNumber {
|
||||||
Ok(value.parse().map(StringNumber)?)
|
Ok(value.parse().map(StringNumber)?)
|
||||||
} else {
|
} else {
|
||||||
// 类型不匹配
|
// 类型不匹配
|
||||||
Err(InputValueError::ExpectedType(value))
|
Err(InputValueError::expected_type(value))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user