Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove spacing between "}" and "]" #596

Conversation

yukukotani
Copy link
Contributor

Fix #564

Remove spacing after "}" when it's map key.

Current

// Missing spacing after "}"
fun main() { map[1 + list.count { it != true }] = 1 }

Patched

// No error
fun main() { map[1 + list.count { it != true }] = 1 }

// Unexpected space after "}"
fun main() { map[1 + list.count { it != true } ] = 1 }

Copy link
Collaborator

@Tapchicoma Tapchicoma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank your for your contribution 👍

@Tapchicoma Tapchicoma merged commit 619e5df into pinterest:master Oct 3, 2019
@yukukotani yukukotani deleted the feature/remove-space-between-lbracket-and-lbrace branch October 3, 2019 14:28
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing spacing after "}" when insert into map
2 participants