summaryrefslogtreecommitdiffhomepage
path: root/lib.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2024-02-21 20:54:17 +0100
committerJo-Philipp Wich <jo@mein.io>2024-02-21 20:54:17 +0100
commitba3855ae3775197f3594fc2615cac539075bd2fb (patch)
tree5b4c76027b77381dc771fbfa7357d6851d529098 /lib.c
parent70769441110f9583e520ba2068e0b6827cd6debc (diff)
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 <jo@mein.io>
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 1d18204..5a6c934 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.
*