这是一个示例界面test.mli
,带有 ocamldoc 样式的注释:
(** ocamldoc module comment *)
open MissingModule;;
(** ocamldoc function comment *)
val test : unit;;
如果我运行命令ocamldoc test.mli
,我会收到以下错误:
File "test.mli", line 2, characters 0-9:
Error: Unbound module MissingModule
1 error(s) encountered
为什么文档生成器应该关心未绑定的模块?