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.." |
Typo: Parentheses after a closure variable.
Not in a code example, but in the following "reason".
Unwrap/Unwrap/Content/SixtySeconds/accepting-parameters-in-a-closure.json
Lines 40 to 41 in 3a5ee7f
Observed: "This is missing
letorvarbeforeprintDocument()"Expected: "This is missing
letorvarbeforeprintDocument"This question explains the issue:
Unwrap/Unwrap/Content/SixtySeconds/creating-basic-closures.json
Lines 36 to 37 in 3a5ee7f