Skip to content

Commit 36df506

Browse files
authored
Merge pull request #311 from elixir-lsp/codex/update-@spec-get_docs/2-in-code.ex
Fix spec for get_docs
2 parents 2da9594 + 8b49e40 commit 36df506

File tree

1 file changed

+1
-1
lines changed
  • lib/elixir_sense/core/normalized

1 file changed

+1
-1
lines changed

lib/elixir_sense/core/normalized/code.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule ElixirSense.Core.Normalized.Code do
2020
Shim to replicate the behavior of deprecated `Code.get_docs/2`
2121
"""
2222
@spec get_docs(module, :docs) :: nil | [fun_doc_entry_t]
23-
@spec get_docs(module, :callback_docs | :type_docs) :: nil | [:doc_entry_t]
23+
@spec get_docs(module, :callback_docs | :type_docs) :: nil | [doc_entry_t]
2424
@spec get_docs(module, :moduledoc) :: nil | moduledoc_entry_t
2525
def get_docs(module, category) do
2626
case fetch_docs(module) do

0 commit comments

Comments
 (0)