Skip to content

subscriber: correct spans in Directive::parse #3297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DaniPopes
Copy link

Motivation

Noticed in #3243 that the main loop iterates over from.trim().char_indices(), but i is used to index into the untrimmed from.

Solution

Reassign from.

`i` refers to `from.trim()` but `from` is used when indexing.
@DaniPopes DaniPopes requested review from hawkw, davidbarsky and a team as code owners June 4, 2025 19:44
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