Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Feb 10, 2024
1 parent 2ded9a1 commit 8d6079f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elixir_sense/core/normalized/code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ defmodule ElixirSense.Core.Normalized.Code do

@docs_chunk [?D, ?o, ?c, ?s]

# TODO remove when we depend on elixir with fix for https://github.com/elixir-lang/elixir/pull/13286
defp fetch_docs_from_beam(bin_or_path) do
case :beam_lib.chunks(bin_or_path, [@docs_chunk]) do
{:ok, {_module, [{@docs_chunk, bin}]}} ->
Expand All @@ -306,7 +307,6 @@ defmodule ElixirSense.Core.Normalized.Code do
{:error, :beam_lib, {:file_error, _, :enoent}} ->
{:error, :module_not_found}

# TODO raise a PR to elixir
{:error, :beam_lib, reason} ->
{:error, reason}
end
Expand Down

0 comments on commit 8d6079f

Please sign in to comment.