Skip to content

Commit

Permalink
lib: fix documentation typo for pop() function
Browse files Browse the repository at this point in the history
The function pops the last, not the first element from the array.

Signed-off-by: Jo-Philipp Wich <[email protected]>
  • Loading branch information
jow- committed Feb 21, 2024
1 parent 7076944 commit ba3855a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ uc_push(uc_vm_t *vm, size_t nargs)
}

/**
* Pops the first item from the given array and returns it.
* Pops the last item from the given array and returns it.
*
* Returns `null` if the array was empty or if a non-array argument was passed.
*
Expand Down

0 comments on commit ba3855a

Please sign in to comment.