Skip to content

BITPOS example is incorrect #18

Open
@opatomic

Description

@opatomic

The example contains incorrect results at https://redis.io/commands/bitpos/

In my browser (firefox), the webpage shows:

redis> SET mykey "\x00\xff\xf0"
"OK"
...
redis> BITPOS mykey 1 7 15 BIT
(integer) 9

However, the expected result from the BITPOS command is:
(integer) 8
which was returned by redis-server v7.0.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions