serde: Repair minor docs typo

This commit is contained in:
Florian Jacob 2020-08-13 09:38:47 +02:00 committed by Jonas Platte
parent c1b4b77bbd
commit a719174592
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -39,7 +39,7 @@ pub fn is_true(b: &bool) -> bool {
/// formulation in the spec.
///
/// 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
pub fn empty_string_as_none<'de, D, T>(de: D) -> Result<Option<T>, D::Error>
where