dfinity / motoko

Simple high-level language for writing Internet Computer canisters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doc comments for `module` don't work

vporton opened this issue · comments

Doc comments for module don't work:

/// ...
module {
}

doesn't produce a doc for the module (at mops.one).

My understanding is that this is related to a convention in the mo-doc command for specifying file-level doc comments.

You should be able to fix this by moving the doc comments above the import section. We could also consider adding support for doc comments directly before the module, since that seems reasonably intuitive.