Skip to content

Index by chars or bytes? #76

@jneem

Description

@jneem

The documentation on the Marker::index field says it's in chars, but the documentation on the Marker::index method says it's in bytes. Which is it?

A quick look suggests the answer is "chars." This is unfortunate, in my opinion, because byte indices are more efficient for most purposes (if you have a str input, for example, you can slice it in constant time). But either way, the doc comments shouldn't conflict with one another...

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