bynk.parse.doc_block_contains_code
Error A documentation block's content (outside Markdown code fences) parses as declarations, so a pair of dash dividers has turned code into documentation.
A line of three or more dashes opens or closes a documentation block, so two dash lines turn the code between them into documentation, and it is never compiled. Use a line comment for a divider. To show code in a documentation block, put it in a Markdown code fence.
Example
-------- // ✗ opens a doc block, not a dividerfn double(n: Int) -> Int { n * 2 }--------fn triple(n: Int) -> Int { n * 3 }
---Doubles a number. // ✓ a doc block holds prose---fn double(n: Int) -> Int { n * 2 }In the Book
See also
- Every code in its category, Parser, on the diagnostic index.
bynk explain bynk.parse.doc_block_contains_codeshows the same from the installed toolchain, without a network.