5
下面是一个例子接口test.mli
,与ocamldoc风格的注释说:为什么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
为什么一个文档生成关心未绑定的模块?