Skip to content
Playground(another site)

bynk.project.duplicate_module_doc

Error More than one file of a multi-file unit carries a module doc.

A unit's module doc is one piece of prose. When a unit is split across files, at most one of them may open with it: with two, the tools would have to join them in some file order and the result would read oddly. The error names every file that carries one. Keep the doc in the file that best introduces the unit, and remove the others.

Example

text/case.bynk
---
Text helpers.
---
commons text
// text/trim.bynk
---
Trimming.
---
commons text // ✗ a second module doc
commons text // ✓ the doc stays in case.bynk

In the Book

See also

  • Every code in its category, Project, on the diagnostic index.
  • bynk explain bynk.project.duplicate_module_doc shows the same from the installed toolchain, without a network.