summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michaelklishin@me.com>2023-04-24 21:04:50 +0400
committerGitHub <noreply@github.com>2023-04-24 19:04:50 +0200
commit90d676b426043796ddb4dafe1cac8b85b8c10e30 (patch)
treeedeaed8532cc2a03cf660072d2f82f0f58ff66cb
parent434ef73e91b60abaa3d06e7311df877220360d2b (diff)
downloadelixir-90d676b426043796ddb4dafe1cac8b85b8c10e30.tar.gz
Use explicit brackets in @dialyzer suppression example (#12533)
They are equivalent but using brackets is clearer.
-rw-r--r--lib/elixir/lib/module.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elixir/lib/module.ex b/lib/elixir/lib/module.ex
index 5113d4cd4..fc49c921d 100644
--- a/lib/elixir/lib/module.ex
+++ b/lib/elixir/lib/module.ex
@@ -237,7 +237,7 @@ defmodule Module do
Accepts an atom, a tuple, or a list of atoms and tuples. For example:
defmodule MyModule do
- @dialyzer {:nowarn_function, my_fun: 1}
+ @dialyzer {:nowarn_function, [my_fun: 1]}
def my_fun(arg) do
M.not_a_function(arg)