From becb8c48e8562f4b472c216eba7eafc03ecf6b4e Mon Sep 17 00:00:00 2001 From: derhaskell Date: Mon, 13 Apr 2015 13:37:06 +0200 Subject: [PATCH] fixes typo in deserialization example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 35f98236..fa58f111 100644 --- a/README.md +++ b/README.md @@ -233,7 +233,7 @@ can create the `i32` from a variety of different types: ```rust impl Deserialize for i32 { - fn deserialize(deserializer: &mut D) -> Result<$ty, D::Error> + fn deserialize(deserializer: &mut D) -> Result where D: serde::Deserializer, { deserializer.visit(I32Visitor)