serde: Repair minor docs typo
This commit is contained in:
parent
c1b4b77bbd
commit
a719174592
@ -39,7 +39,7 @@ pub fn is_true(b: &bool) -> bool {
|
|||||||
/// formulation in the spec.
|
/// formulation in the spec.
|
||||||
///
|
///
|
||||||
/// To be used like this:
|
/// To be used like this:
|
||||||
/// `#[serde(deserialize_with = "empty_string_as_none"]`
|
/// `#[serde(deserialize_with = "empty_string_as_none")]`
|
||||||
/// Relevant serde issue: https://github.com/serde-rs/serde/issues/1425
|
/// Relevant serde issue: https://github.com/serde-rs/serde/issues/1425
|
||||||
pub fn empty_string_as_none<'de, D, T>(de: D) -> Result<Option<T>, D::Error>
|
pub fn empty_string_as_none<'de, D, T>(de: D) -> Result<Option<T>, D::Error>
|
||||||
where
|
where
|
||||||
|
Loading…
x
Reference in New Issue
Block a user