- 
                Notifications
    
You must be signed in to change notification settings  - Fork 313
 
Open
Description
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:
Unwrap/Unwrap/Content/SixtySeconds/creating-basic-closures.json
Lines 36 to 37 in 3a5ee7f
| "answer": "let upgrade() = {\n\tprint(\"Upgrading...\")\n}\nupgrade()", | |
| "reason": "The parentheses after <code>upgrade<\/code> should not be there.." | 
Metadata
Metadata
Assignees
Labels
No labels