diff --git a/lib/elixir_sense/core/introspection.ex b/lib/elixir_sense/core/introspection.ex index e1bd77a4..2ac18edf 100644 --- a/lib/elixir_sense/core/introspection.ex +++ b/lib/elixir_sense/core/introspection.ex @@ -422,8 +422,7 @@ defmodule ElixirSense.Core.Introspection do if kind == :macrocallback do {:"MACRO-#{name}", arity + 1} else - # some erlang callbacks have broken docs e.g. :gen_statem.state_name - {name |> Atom.to_string() |> Macro.underscore() |> String.to_atom(), arity} + {name, arity} end case List.keyfind(callbacks, key, 0) do