I am using Dialyzer to fix errors in Erlang code.
io:format(IoDevice, "[]");
This line produces the following error:
The call io:format(IoDevice::pid(),[91 | 93,...])
will never return since the success typing is
(atom() | binary() | string(),[any()]) -> 'ok'
and the contract is (Format,Data) -> 'ok'
when Format :: format(), Data :: [term()]
I am not able to understand what the problem is can anyone explain it?
Thank you