Skip to main content

O0006 - `` Quote ended unexpectedly

Error

    %% @doc To execute the program, call `main`
%% Here is some code:
%% `` 'erlang@localhost' ``
%% ^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: ``-quote ended unexpectedly
main() ->
ok.

Explanation

Double back-quotes in EDoc are used to quote text containing single ' characters. If you are getting this error, you are most likely using markdown-style monospace quoting instead of EDoc's monospace quotes. To fix the error, replace the last occurrence of `` with '':

    %% @doc To execute the program, call `main`
%% Here is some code:
%% `` 'erlang@localhost' ''
main() ->
ok.

You can read more about verbatim quoting in EDoc here.