mirror of
https://github.com/fluencelabs/interface-types
synced 2024-12-04 15:20:20 +00:00
doc(interface-types) Explain a part of an algorithm.
This commit is contained in:
parent
b9b5a32154
commit
136518e77e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user