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 bug that number of lines in a file are not counted correctly #339

Merged
merged 1 commit into from Oct 25, 2021

Conversation

ono-max
Copy link
Collaborator

@ono-max ono-max commented Oct 24, 2021

I try to put number of lines in the file as follows:

when 'Page.getResourceTree'
          abs = File.absolute_path($0)
          src = File.read(abs)
          p src.count('\n')

However, the number is not correct. This PR fixes it.

@ko1 ko1 merged commit 7020925 into ruby:master Oct 25, 2021
@ono-max ono-max deleted the patch2-to-fix-bug branch October 31, 2021 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants