From ba3855ae3775197f3594fc2615cac539075bd2fb Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 21 Feb 2024 20:54:17 +0100 Subject: [PATCH] lib: fix documentation typo for `pop()` function The function pops the last, not the first element from the array. Signed-off-by: Jo-Philipp Wich --- lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.c b/lib.c index 1d182049..5a6c9345 100644 --- a/lib.c +++ b/lib.c @@ -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. *