Skip to content

fix(stdlib): rfind_in empty returns clamped end - #287

Merged
zaidejjo merged 1 commit into
devfrom
fix/rfind-empty
Oct 7, 2026
Merged

zaidejjo merged 1 commit into
devfrom
fix/rfind-empty

Conversation

@zaidejjo

@zaidejjo zaidejjo commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Matches the legacy wrapper semantics (str.rfind(text, p, e) returns e for empty patterns): empty rfind_in in [s,e) returns e, not s. Without this, tail computations on empty patterns diverge. Rust + C + docs. Trivial, no behavior change otherwise.

@zaidejjo
zaidejjo merged commit 39d359f into dev Oct 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant