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

Cleanup of IO#getc usage in specs of IO#read #1119

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

herwinw
Copy link
Member

@herwinw herwinw commented Dec 6, 2023

IO#getc returns a character string, there is no need to call #chr on the result. It looks like it got confused with IO#getbyte.

`IO#getc` returns a character string, there is no need to call `#chr` on
the result. It looks like it got confused with `IO#getbyte`.
@andrykonchin
Copy link
Member

Thank you!

@andrykonchin andrykonchin merged commit 56e16b7 into ruby:master Dec 6, 2023
10 checks passed
@herwinw herwinw deleted the io_read_getc branch December 6, 2023 15:50
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.

2 participants