相关疑难解决方法(0)

Elixir - 模块未使用docs编译

我昨天刚开始学习长生不老药.我有一个文件User.exs.它看起来像这样:

defmodule User do
    @moduledoc """ 
    Defines the user struct and functions to handle users.
    """
    # functions and stuff go here...

end
Run Code Online (Sandbox Code Playgroud)

当我运行时iex,这是当我尝试查看文档时发生的情况:

iex(1)> c "user.exs"
[User]
iex(2)> h User
User was not compiled with docs
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

documentation elixir iex

4
推荐指数
2
解决办法
1365
查看次数

标签 统计

documentation ×1

elixir ×1

iex ×1