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

IO#encoding fix #3052

Closed
wants to merge 2 commits into from
Closed

IO#encoding fix #3052

wants to merge 2 commits into from

Conversation

JacobUb
Copy link
Contributor

@JacobUb JacobUb commented Jul 26, 2016

Fixes this error:

in /opt/crystal/src/io.cr:875: type must be String, not (IO::EncodingOptions | String)

  def encoding : String
@asterite
Copy link
Member

Thank you! Maybe you can add a spec to MemoryIO, checking this?

@JacobUb
Copy link
Contributor Author

JacobUb commented Jul 26, 2016

My Linux installation (with Git configured and all) doesn't boot anymore so I can only change one file at a time via github itself. If you don't mind having a separate PR for the spec I can go ahead and do it.

@asterite
Copy link
Member

If you don't mind, I can commit the fix with the spec directly to master (it's a very small change)

@JacobUb
Copy link
Contributor Author

JacobUb commented Jul 26, 2016

Done.

@asterite
Copy link
Member

Merged in 7e9bd70. Thank you!

@asterite asterite closed this Jul 29, 2016
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.

None yet

2 participants