Skip to content

Commit 72c4706

Browse files
authored
fix: guard from missing function doc (#226)
1 parent 315dd97 commit 72c4706

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/next_ls.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -305,13 +305,13 @@ defmodule NextLS do
305305
"""
306306

307307
"function" ->
308-
{_, _, _, doc, _} =
308+
doc =
309309
Enum.find(fdocs, fn {{type, name, _a}, _, _, _doc, _} ->
310310
type in [:function, :macro] and to_string(name) == reference.identifier
311311
end)
312312

313313
case doc do
314-
%{"en" => fdoc} ->
314+
{_, _, _, %{"en" => fdoc}, _} ->
315315
"""
316316
## #{Macro.to_string(mod)}.#{reference.identifier}/#{reference.arity}
317317

0 commit comments

Comments
 (0)