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

Remove extra newline in top-level FunDef's string representation #14212

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

HertzDevil
Copy link
Contributor

Removes the following empty line, which is always there for top-level funs:

{% p @top_level.methods.select(&.name.== "main")[0] %}
fun main(argc : Int32, argv : ::Pointer(::Pointer(UInt8))) : Int32
  Crystal.main(argc, argv)

end

@straight-shoota straight-shoota added this to the 1.12.0 milestone Jan 10, 2024
@straight-shoota straight-shoota merged commit 3bf68dd into crystal-lang:master Jan 12, 2024
57 checks passed
@HertzDevil HertzDevil deleted the bug/fundef-to_s branch January 26, 2024 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants