Skip to content

Commit 45734fe

Browse files
Fix minor typos in docs and comments (#15068)
1 parent ebfebed commit 45734fe

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

lib/elixir/lib/calendar/duration.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ defmodule Duration do
232232
@doc """
233233
Adds units of given durations `d1` and `d2`.
234234
235-
Respects the the highest microsecond precision of the two.
235+
Respects the highest microsecond precision of the two.
236236
237237
## Examples
238238
@@ -262,7 +262,7 @@ defmodule Duration do
262262
@doc """
263263
Subtracts units of given durations `d1` and `d2`.
264264
265-
Respects the the highest microsecond precision of the two.
265+
Respects the highest microsecond precision of the two.
266266
267267
## Examples
268268

lib/elixir/lib/enum.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,7 @@ defmodule Enum do
12531253
iex> Enum.flat_map([:a, :b, :c], fn x -> [[x]] end)
12541254
[[:a], [:b], [:c]]
12551255
1256-
This is frequently used to to transform and filter in one pass, returning empty
1256+
This is frequently used to transform and filter in one pass, returning empty
12571257
lists to exclude results:
12581258
12591259
iex> Enum.flat_map([4, 0, 2, 0], fn x ->

lib/elixir/lib/module.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ defmodule Module do
13391339
@doc """
13401340
Returns all overridable definitions in `module`.
13411341
1342-
Note a definition is included even if it was was already overridden.
1342+
Note a definition is included even if it was already overridden.
13431343
You can use `defines?/2` to see if a definition exists or one is pending.
13441344
13451345
This function can only be used on modules that have not yet been compiled.

lib/elixir/lib/module/types/descr.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ defmodule Module.Types.Descr do
284284

285285
## Optional
286286

287-
# `not_set()` is a special base type that represents an not_set field in a map.
287+
# `not_set()` is a special base type that represents a not_set field in a map.
288288
# E.g., `%{a: integer(), b: not_set(), ...}` represents a map with an integer
289289
# field `a` and an not_set field `b`, and possibly other fields.
290290
#

lib/elixir/lib/registry.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ defmodule Registry do
16101610
def __unregister__(table, match, pos) do
16111611
key = :erlang.element(pos, match)
16121612

1613-
# We need to perform an element comparison if we have an special atom key.
1613+
# We need to perform an element comparison if we have a special atom key.
16141614
if is_atom(key) and reserved_atom?(Atom.to_string(key)) do
16151615
match = :erlang.setelement(pos, match, :_)
16161616
guard = {:"=:=", {:element, pos, :"$_"}, {:const, key}}

lib/elixir/lib/string.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ defmodule String do
483483
iex> String.split("abc", "", parts: 3)
484484
["", "a", "bc"]
485485
486-
Splitting on an non-existing pattern returns the original string:
486+
Splitting on a non-existing pattern returns the original string:
487487
488488
iex> String.split("abc", ",")
489489
["abc"]

0 commit comments

Comments
 (0)