Skip to content

It's not obvious that trim_char only operates on the ends #18451

Closed
@mdinger

Description

@mdinger

trim_chars only trims characters from the ends but that is not clear from the documentation.

// Not obvious from the description why this doesn't work
"hello world".trim_char(' ');

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