diff --git a/lib/elixir/lib/supervisor.ex b/lib/elixir/lib/supervisor.ex index ba4a893d2d6..863fab99750 100644 --- a/lib/elixir/lib/supervisor.ex +++ b/lib/elixir/lib/supervisor.ex @@ -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: diff --git a/lib/elixir/src/elixir_tokenizer.erl b/lib/elixir/src/elixir_tokenizer.erl index f069c783a81..590547ea91b 100644 --- a/lib/elixir/src/elixir_tokenizer.erl +++ b/lib/elixir/src/elixir_tokenizer.erl @@ -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