doc(interface-types) Explain a part of an algorithm.

This commit is contained in:
Ivan Enderlin 2020-04-04 08:10:38 +02:00
parent b9b5a32154
commit 136518e77e

View File

@ -87,6 +87,8 @@ impl Serializer {
}
fn pop(&mut self) -> Result<Vec<InterfaceValue>, SerializeError> {
// The first `vec` contains the final result. It is forbidden
// to `pop` it as is.
if self.values.len() < 2 {
Err(SerializeError::InternalValuesCorrupted)
} else {