serde: Tiny docs improvement
This commit is contained in:
parent
9b38538579
commit
4edaf5a638
@ -132,7 +132,7 @@ impl<T> Raw<T>
|
|||||||
where
|
where
|
||||||
T: DeserializeOwned,
|
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> {
|
pub fn deserialize(&self) -> Result<T, serde_json::Error> {
|
||||||
serde_json::from_str(self.json.get())
|
serde_json::from_str(self.json.get())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user