diff options
author | José Valim <jose.valim@dashbit.co> | 2020-02-05 00:33:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-05 00:33:00 +0100 |
commit | 3400b38442b23e53b51444d85f4f00dac49855a9 (patch) | |
tree | 06db09411c50859c9846db420111463b12c1dcfd | |
parent | 94c834890a5aeb73047badc5cdb6fe2c875bf2c2 (diff) | |
download | elixir-emj/warn-once.tar.gz |
Update io.exemj/warn-once
-rw-r--r-- | lib/elixir/lib/io.ex | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/elixir/lib/io.ex b/lib/elixir/lib/io.ex index 66a78c6ae..d8ff99ff8 100644 --- a/lib/elixir/lib/io.ex +++ b/lib/elixir/lib/io.ex @@ -351,10 +351,10 @@ defmodule IO do It returns `:ok` if it succeeds. - Make sure to not call this function at the tail of another function, - due to tail call optimization a stacktrace entry would not be added - and the trace would incorrectly trimmed. As a workaround you can add - the `:ok` term after the `IO.warn("message")` call. + Do not call this function at the tail of another function. Due to tail + call optimization, a stacktrace entry would not be added and the + stacktrace would be incorrectly trimmed. Therefore make sure at least + one expression (or an atom such as `:ok`) follows the `IO.warn/1` call. ## Examples |