Skip to content

replace_in char for first arg? #48

@PandorasFox

Description

@PandorasFox

beat my head against the wall for a bit since I wasn't reading the docs closely enough / made some assumptions about the interface - I'm not overly familiar with rust/rhai strings, so backticks for single-char strings wasn't really clear.

(alternatively - a segment at the top of this page that calls out "all these methods expect strings, use backticks for single-char strings" would I think go a long way for making that user error more obvious)

In general though, I think the more expected interface & use-case is to be able to just call replace_in('"', "foo") and have that work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions