Skip to content

Remove string [] indexing #12710

Closed
Closed
@huonw

Description

@huonw

It is byte indexing (not character indexing) which is encouraging poor UTF-8 hygiene, and the behaviour can be regained either with the .bytes() iterator, or just s.as_bytes() to get a &[u8] view (at zero cost).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions