summaryrefslogtreecommitdiff
path: root/src/model/methods.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/methods.rs')
-rw-r--r--src/model/methods.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/methods.rs b/src/model/methods.rs
index 5da64fa2..c0b63669 100644
--- a/src/model/methods.rs
+++ b/src/model/methods.rs
@@ -144,7 +144,7 @@ pub fn call_mut(
match value {
Value::Array(array) => match method {
"push" => array.push(args.expect("value")?),
- "pop" => array.pop().at(span)?,
+ "pop" => output = array.pop().at(span)?,
"insert" => {
array.insert(args.expect("index")?, args.expect("value")?).at(span)?
}