Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct out-of-order raxSeek parameters in README.md #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"`:
Expand Down Expand Up @@ -340,7 +340,7 @@ not produce any result.
The simplest way to continue the iteration, starting again from the last
element returned by the iterator, is simply to seek itself:

raxSeek(&iter,iter.key,iter.key_len,"==");
raxSeek(&iter,"==",iter.key,iter.key_len);

So for example in order to write a command that prints all the elements
of a radix tree from the first to the last, and later again from the last
Expand Down