fixes typo in deserialization example

This commit is contained in:
derhaskell 2015-04-13 13:37:06 +02:00
parent aa16ecf4d3
commit becb8c48e8

View File

@ -233,7 +233,7 @@ can create the `i32` from a variety of different types:
```rust ```rust
impl Deserialize for i32 { impl Deserialize for i32 {
fn deserialize<D>(deserializer: &mut D) -> Result<$ty, D::Error> fn deserialize<D>(deserializer: &mut D) -> Result<i32, D::Error>
where D: serde::Deserializer, where D: serde::Deserializer,
{ {
deserializer.visit(I32Visitor) deserializer.visit(I32Visitor)