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 5119b6a58f
commit 4ad3d7f123

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 {