Skip to content

Commit ead9b67

Browse files
committed
Revise signature of raxSeek in the README
1 parent 1927550 commit ead9b67

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ of 'seek', which is not 'seeked', in case you wonder) in order to start
180180
the iteration from the specified position. For this goal, the function
181181
`raxSeek` is used:
182182

183-
int raxSeek(raxIterator *it, unsigned char *ele, size_t len, const char *op);
183+
int raxSeek(raxIterator *it, const char *op, unsigned char *ele, size_t len);
184184

185185
For instance one may want to seek the first element greater or equal to the
186186
key `"foo"`:
@@ -189,7 +189,7 @@ key `"foo"`:
189189

190190
The function raxSeek() returns 1 on success, or 0 on failure. Possible failures are:
191191

192-
1. An invalid operator was passed as last argument.
192+
1. An invalid operator was passed as second argument.
193193
2. An out of memory condition happened while seeking the iterator.
194194

195195
Once the iterator is sought, it is possible to iterate using the function

0 commit comments

Comments
 (0)