Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/elixir/lib/code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ defmodule Code do
existing_atoms_only: boolean(),
token_metadata: boolean(),
literal_encoder: (term(), Macro.metadata() -> term()),
static_atoms_encoder: (atom() -> term()),
static_atoms_encoder: (binary(), Macro.metadata() -> {:ok, term()} | {:error, binary()}),
emit_warnings: boolean()
]

Expand Down Expand Up @@ -1319,7 +1319,7 @@ defmodule Code do
and keyword lists.

The encoder function will receive the atom name (as a binary) and a
keyword list with the current file, line and column. It must return
keyword list with the current line and column. It must return
`{:ok, token :: term} | {:error, reason :: binary}`.

The encoder function is supposed to create an atom from the given
Expand Down
Loading