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

Typo: Parentheses after a closure variable #206

Open
duianto opened this issue Sep 4, 2021 · 0 comments
Open

Typo: Parentheses after a closure variable #206

duianto opened this issue Sep 4, 2021 · 0 comments

Comments

@duianto
Copy link

duianto commented Sep 4, 2021

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.."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant