Skip to content
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

fix: Count lines correctly #260

Merged
merged 1 commit into from
May 27, 2021
Merged

fix: Count lines correctly #260

merged 1 commit into from
May 27, 2021

Conversation

epage
Copy link
Collaborator

@epage epage commented May 27, 2021

I didn't count on how buffer.lines().count() would handle different
corner cases, like slices with no \n, slices with trailing \n, etc.

Fixes #259

I didn't count on how `buffer.lines().count()` would handle different
corner cases, like slices with no `\n`, slices with trailing `\n`, etc.

Fixes crate-ci#259
@epage epage merged commit 9f5de0f into crate-ci:master May 27, 2021
@epage epage deleted the lines branch May 27, 2021 18:55
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.

line numbers are off
1 participant