Skip to content
Playground(another site)

bynk.lex.unclosed_doc_block

Error A documentation block is not closed.

A line of three or more dashes opens a documentation block, and a line of exactly the same number of dashes closes it. Here no closing line follows, so the compiler cannot tell where the documentation ends. There is no standalone --- divider; a divider is a comment, // ---. Add the closing line.

Example

--- // ✗ never closed
Doubles a number.
fn double(n: Int) -> Int { n * 2 }
---
Doubles a number.
--- // ✓ closed with as many dashes
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.unclosed_doc_block shows the same from the installed toolchain, without a network.