Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion lib/elixir/lib/supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ defmodule Supervisor do
The map above defines a child with `:id` of `Counter` that is started
by calling `Counter.start_link(0)`.

However, definining the child specification for each child as a map can be
However, defining the child specification for each child as a map can be
quite error prone, as we may change the `Counter` implementation and forget
to update its specification. That's why Elixir allows you to pass a tuple with
the module name and the `start_link` argument instead of the specification:
Expand Down
2 changes: 1 addition & 1 deletion lib/elixir/src/elixir_tokenizer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@ tokenize_identifier(String, Line, Column, Scope, MaybeKeyword) ->
empty
end.

%% hueristic: try nfkc; try confusability skeleton; try calling this again w/just failed codepoint
%% heuristic: try nfkc; try confusability skeleton; try calling this again w/just failed codepoint
suggest_simpler_unexpected_token_in_error(Wrong, Line, WrongColumn, Scope) ->
NFKC = unicode:characters_to_nfkc_list(Wrong),
case (Scope#elixir_tokenizer.identifier_tokenizer):tokenize(NFKC) of
Expand Down