doc(interface-types) Fix a typo.

This commit is contained in:
Ivan Enderlin 2020-04-03 16:16:53 +02:00
parent 419dcc6415
commit b9f54fb5c4

View File

@ -202,7 +202,7 @@ impl<'de, 'a> de::Deserializer<'de> for &'a mut Deserializer<'de> {
Some(InterfaceValue::String(_)) => self.deserialize_string(visitor),
Some(InterfaceValue::I32(_)) => self.deserialize_i32(visitor),
Some(InterfaceValue::I64(_)) => self.deserialize_i64(visitor),
Some(InterfaceValue::Record(_)) => unreachable!("Records should have been flatten."), // already flatten
Some(InterfaceValue::Record(_)) => unreachable!("Records should have been flattened."), // already flattened
None => Err(DeserializeError::InputEmpty),
}
}