Skip to content

Commit

Permalink
Correct serde attribute option
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops authored Jun 7, 2017
1 parent 2641e36 commit d677881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion url_serde/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Use the serde attributes `deserialize_with` and `serialize_with`.
```
#[derive(serde::Serialize, serde::Deserialize)]
struct MyStruct {
#[serde(with = "url_serde")]
#[serde(serialize_with = "serialize")]
url: Url,
}
```
Expand Down

0 comments on commit d677881

Please sign in to comment.