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

Insert space around the multiplication operator #598

Conversation

yukukotani
Copy link
Contributor

Fixes #576

Inserts space around the multiplication operator, but not for spread operator.

Current

// No error
fun main() {
    test(*array)
    test(1, *array, 2)
    test(1*value)
    test.run { 1*value }
}

Patched

fun main() {
    test(*array)
    test(1, *array, 2)
    // Missing spacing around "*"
    test(1*value)
    // Missing spacing around "*"
    test.run { 1*value }
}

// Formatted result
fun main() {
    test(*array)
    test(1, *array, 2)
    test(1 * value)
    test.run { 1 * value }
}

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 you for your contribution 👍

@Tapchicoma Tapchicoma merged commit dab8b81 into pinterest:master Oct 3, 2019
# 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.

Incorrect formatting within lambdas for multiplication sign
2 participants