summaryrefslogtreecommitdiff
path: root/src/model/methods.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-02-05 17:47:33 +0100
committerLaurenz <laurmaedje@gmail.com>2023-02-05 17:47:33 +0100
commit9a99beec94a5b02aa91a363b299d4795ef52c0fa (patch)
tree0119a005ad8256b641a59d20645c5dbd16a7955c /src/model/methods.rs
parent93138e2d4bb7dbc09ab6ef3c6e139881a8f3bc61 (diff)
Fix `array.pop()`
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)?
}