Skip to content

Typo: Parentheses after a closure variable #206

@duianto

Description

@duianto

Typo: Parentheses after a closure variable.
Not in a code example, but in the following "reason".

"answer": "printDocument = { (copies: Int) in\n\tfor _ in 1...copies {\n\t\tprint(\"Printing document...\")\n\t}\n}",
"reason": "This is missing <code>let</code> or <code>var</code> before <code>printDocument()</code>"

Observed: "This is missing let or var before printDocument()"
Expected: "This is missing let or var before printDocument"

This question explains the issue:

"answer": "let upgrade() = {\n\tprint(\"Upgrading...\")\n}\nupgrade()",
"reason": "The parentheses after <code>upgrade<\/code> should not be there.."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions