We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
crystal 0.20.3
Code:
{ { "a", "b" } }
Output: Syntax error in eval:2: expecting token '=>', not 'NEWLINE'
Syntax error in eval:2: expecting token '=>', not 'NEWLINE'
Solutions?:
{ { "a", "b" }, }
{ { "a", "b" }}
Also comma isn't needed when the tuple have 2 nested tuples or more:
t = { {"a", "b"}, {"a", "b"} }
But, crystal tool format always add comma at the end.
crystal tool format
# After crystal tool format t = { {"a", "b"}, {"a", "b"}, }
Happy Christmas! 🎄
The text was updated successfully, but these errors were encountered:
a3ea7ad
No branches or pull requests
crystal 0.20.3
Code:
Output:
Syntax error in eval:2: expecting token '=>', not 'NEWLINE'
Solutions?:
Also comma isn't needed when the tuple have 2 nested tuples or more:
But,
crystal tool format
always add comma at the end.Happy Christmas! 🎄
The text was updated successfully, but these errors were encountered: