-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Description
Elixir and Erlang/OTP versions
Elixir 1.19.4
Operating system
Chrome 143.0.7499.109 on Windows 11
Current behavior
In other words, when invoked as:
Unless.macro_unless(true, do: IO.puts("this should never be printed"))Our
macro_unlessmacro received the following:macro_unless(true, [do: {{:., [], [{:__aliases__, [alias: **false**], [:IO]}, :puts]}, [], ["this should never be printed"]}])
Expected behavior
Not sure if there's a different place to report Doc issues but linked to the line number in the macro doc in the field up above. If I was understanding the docs right, the Boolean value was flipped from what is should be. If I'm wrong in addition to closing the issue I would appreciate an explanation for my understanding. Thanks!
In other words, when invoked as:
Unless.macro_unless(true, do: IO.puts("this should never be printed"))Our
macro_unlessmacro received the following:macro_unless(true, [do: {{:., [], [{:__aliases__, [alias: **true**], [:IO]}, :puts]}, [], ["this should never be printed"]}])
Metadata
Metadata
Assignees
Labels
No labels