serde: Tiny docs improvement

This commit is contained in:
Jonas Platte 2021-05-15 14:08:58 +02:00
parent 9b38538579
commit 4edaf5a638
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -132,7 +132,7 @@ impl<T> Raw<T>
where
T: DeserializeOwned,
{
/// Try to deserialize the JSON into the expected type.
/// Try to deserialize the JSON as the expected type.
pub fn deserialize(&self) -> Result<T, serde_json::Error> {
serde_json::from_str(self.json.get())
}