From ead9b67b69d52cbef7208fab65ec2a2a84f8e82c Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sun, 26 Nov 2023 13:39:13 +0100 Subject: [PATCH] Revise signature of raxSeek in the README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4214a95..42aef95 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ of 'seek', which is not 'seeked', in case you wonder) in order to start the iteration from the specified position. For this goal, the function `raxSeek` is used: - int raxSeek(raxIterator *it, unsigned char *ele, size_t len, const char *op); + int raxSeek(raxIterator *it, const char *op, unsigned char *ele, size_t len); For instance one may want to seek the first element greater or equal to the key `"foo"`: @@ -189,7 +189,7 @@ key `"foo"`: The function raxSeek() returns 1 on success, or 0 on failure. Possible failures are: -1. An invalid operator was passed as last argument. +1. An invalid operator was passed as second argument. 2. An out of memory condition happened while seeking the iterator. Once the iterator is sought, it is possible to iterate using the function