我目前有三个文件:
tempfile.hrl
-export_type([temptype/0]).
-type temptype() :: string().
%% blah blah documentation
tempfile.erl
-module(tempfile).
... more code, but no references to the temptype() type.
random.erl
-module(random).
%% @headerfile "tempfile.hrl"
-include("tempfile.hrl").
-spec random() -> tempfile:temptype().
然而,当使用edoc时,
temptype()
的文档没有出现。有一个到tempfile.html#temptype
的超链接,但它链接到了空白页。我甚至尝试使用-export_type
,但那也没有起作用...可能是什么问题?谢谢。