From 93a7568ff6ca2006d7b69723c6154920f0a359c8 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 17 Apr 2016 21:31:18 -0700 Subject: [PATCH] Fix documentation of skip_serializing_if --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 02a73a16..3d2c63b8 100644 --- a/README.md +++ b/README.md @@ -715,7 +715,7 @@ Field Annotations: | `#[serde(default="$path")]` | Call the path to a function `fn() -> T` to build the value | | `#[serde(skip_serializing)]` | Do not serialize this value | | `#[serde(skip_deserializing)]` | Always use `Default::default()` instead of deserializing this value | -| `#[serde(skip_serializing_if="$path")]` | Do not serialize this value if this function `fn(&T) -> bool` returns `false` | +| `#[serde(skip_serializing_if="$path")]` | Do not serialize this value if this function `fn(&T) -> bool` returns `true` | | `#[serde(serialize_with="$path")]` | Call a function `fn(&T, &mut S) -> Result<(), S::Error> where S: Serializer` to serialize this value | | `#[serde(deserialize_with="$path")]` | Call a function `fn(&mut D) -> Result where D: Deserializer` to deserialize this value |