mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-28 08:01:33 +00:00
doc(interface-types) Explain a part of an algorithm.
This commit is contained in:
@ -87,6 +87,8 @@ impl Serializer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn pop(&mut self) -> Result<Vec<InterfaceValue>, SerializeError> {
|
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 {
|
if self.values.len() < 2 {
|
||||||
Err(SerializeError::InternalValuesCorrupted)
|
Err(SerializeError::InternalValuesCorrupted)
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user