bynk.lex.slash_doc
Error A /// doc comment first on its line; a Bynk doc is --- text or a --- block (auto-fixable).
A /// is not a doc comment in Bynk. A doc is written with dashes: --- text for one line, or a block between two --- lines for more. A plain comment is //. The fix to --- is machine-applicable: bynk check --fix applies it. A run of four or more slashes is an ordinary comment.
Example
/// Doubles a number. // ✗ a comment, not a docfn double(n: Int) -> Int { n * 2 }
--- Doubles a number. // ✓fn double(n: Int) -> Int { n * 2 }In the Book
See also
- Every code in its category, Lexer, on the diagnostic index.
bynk explain bynk.lex.slash_docshows the same from the installed toolchain, without a network.