Skip to content

Commit

Permalink
Update src/vm/datatypes/lists/lists.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2605 authored Sep 12, 2024
1 parent 2dc0ffe commit 9fdd7b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/datatypes/lists/lists.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ static Value popListItem(DictuVM *vm, int argCount, Value *args) {
index = list->values.count + index;
}
if (index < 0 || index > list->values.count) {
runtimeError(vm, "Index passed to insert() is out of bounds for the list given");
runtimeError(vm, "Index passed to pop() is out of bounds for the list given");
return EMPTY_VAL;
}

Expand Down

0 comments on commit 9fdd7b6

Please sign in to comment.