From 8a9775d3b9929e06d9fb2c85502d013c3b7432a8 Mon Sep 17 00:00:00 2001 From: Alex Gubarev Date: Tue, 9 Jun 2026 23:52:48 +0300 Subject: [PATCH] typo fixes --- lib/elixir/lib/module/types/descr.ex | 2 +- lib/elixir/lib/module/types/expr.ex | 2 +- lib/elixir/lib/module/types/helpers.ex | 2 +- lib/elixir/lib/module/types/of.ex | 2 +- lib/elixir/src/elixir_rewrite.erl | 2 +- lib/elixir/src/elixir_tokenizer.erl | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/elixir/lib/module/types/descr.ex b/lib/elixir/lib/module/types/descr.ex index c45e3f13c37..02b6284c038 100644 --- a/lib/elixir/lib/module/types/descr.ex +++ b/lib/elixir/lib/module/types/descr.ex @@ -6081,7 +6081,7 @@ defmodule Module.Types.Descr do # When doing BDD1 v BDD2, BDD2 is likely stored as a lazy union. # However, if BDD2 appears in the constrained or dual nodes of BDD1, - # we want to remove them, to avoid carrying unecessary information. + # we want to remove them, to avoid carrying unnecessary information. # This function does precisely so. defp bdd_remove(_bdd, :bdd_top), do: :bdd_bot defp bdd_remove(bdd, :bdd_bot), do: bdd diff --git a/lib/elixir/lib/module/types/expr.ex b/lib/elixir/lib/module/types/expr.ex index 521432b7e3d..a64f7a2f95c 100644 --- a/lib/elixir/lib/module/types/expr.ex +++ b/lib/elixir/lib/module/types/expr.ex @@ -402,7 +402,7 @@ defmodule Module.Types.Expr do context # If there is a single clause, we assume it is always evaluated - # by doing reverse arrows and incorporting all variables into the context. + # by doing reverse arrows and incorporating all variables into the context. # We have to evaluate the head again but it might have been preferred # if we could somehow merge a previously computed context. {_, [{arg_type, _body_type, {:->, meta, [head, body]}}]} -> diff --git a/lib/elixir/lib/module/types/helpers.ex b/lib/elixir/lib/module/types/helpers.ex index f83951cae17..bf3c3c580ed 100644 --- a/lib/elixir/lib/module/types/helpers.ex +++ b/lib/elixir/lib/module/types/helpers.ex @@ -57,7 +57,7 @@ defmodule Module.Types.Helpers do ## Warnings @doc """ - Converts an itneger into ordinal. + Converts an integer into ordinal. """ def integer_to_ordinal(i) do case rem(i, 10) do diff --git a/lib/elixir/lib/module/types/of.ex b/lib/elixir/lib/module/types/of.ex index 181864ae48c..5cfc8e5682f 100644 --- a/lib/elixir/lib/module/types/of.ex +++ b/lib/elixir/lib/module/types/of.ex @@ -31,7 +31,7 @@ defmodule Module.Types.Of do @doc """ Marks a variable with error. - This purposedly deletes all traces of the variable, + This purposely deletes all traces of the variable, as it is often invoked when the cause for error is elsewhere. """ def error_var({_, meta, _}, context) do diff --git a/lib/elixir/src/elixir_rewrite.erl b/lib/elixir/src/elixir_rewrite.erl index e782cdb2607..cbf260129c2 100644 --- a/lib/elixir/src/elixir_rewrite.erl +++ b/lib/elixir/src/elixir_rewrite.erl @@ -238,7 +238,7 @@ inner_inline(_, _, _, _) -> false. %% %% Rewrite rules are more complex than regular inlining code %% as they may change the number of arguments. However, they -%% cannot change tha argument order, as that can change the +%% cannot change the argument order, as that can change the %% code semantics. rewrite(?string_chars, DotMeta, to_string, Meta, [Arg]) -> case is_always_string(Arg) of diff --git a/lib/elixir/src/elixir_tokenizer.erl b/lib/elixir/src/elixir_tokenizer.erl index 92c46b768ef..8eaa70d70d7 100644 --- a/lib/elixir/src/elixir_tokenizer.erl +++ b/lib/elixir/src/elixir_tokenizer.erl @@ -1918,13 +1918,13 @@ add_cursor(_Line, Column, noprune, Tokens) -> {Column, Tokens}; add_cursor(Line, Column, {prune_and_cursor, true}, - [{sigil, {_, _, {Line, Column}} = Location, Name, Parts, Modifier, Identation, Delimiter} | Rest]) -> + [{sigil, {_, _, {Line, Column}} = Location, Name, Parts, Modifier, Indentation, Delimiter} | Rest]) -> Cursor = {'__cursor__', [{line, Line}, {column, Column}], []}, CursorModifier = case Modifier of false -> Cursor; List -> List ++ [Cursor] end, - {Column + 12, [{sigil, Location, Name, Parts, CursorModifier, Identation, Delimiter} | Rest]}; + {Column + 12, [{sigil, Location, Name, Parts, CursorModifier, Indentation, Delimiter} | Rest]}; add_cursor(Line, Column, {prune_and_cursor, _}, Tokens) -> PrePrunedTokens = prune_identifier(Tokens),