Skip to content

Commit

Permalink
Fix a few minor typos in docs / comments (#4291)
Browse files Browse the repository at this point in the history
  • Loading branch information
artkay authored Oct 1, 2023
1 parent 859a34f commit 6bacf49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/ecto/changeset.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ defmodule Ecto.Changeset do
end
end

# We check for the byte size to avoid creating unecessary large integers
# We check for the byte size to avoid creating unnecessary large integers
# which would never map to a database key (u64 is 20 digits only).
defp key_as_int({key, val}) when is_binary(key) and byte_size(key) < 32 do
case Integer.parse(key) do
Expand Down
2 changes: 1 addition & 1 deletion lib/ecto/query.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1724,7 +1724,7 @@ defmodule Ecto.Query do
Dynamics can be part of a `select_merge` as values in a map that must be
interpolated at the root level. The rules for merging detailed above apply.
This allows merging dynamic values into previsouly selected maps and structs.
This allows merging dynamic values into previously selected maps and structs.
"""
defmacro select_merge(query, binding \\ [], expr) do
Builder.Select.build(:merge, query, binding, expr, __CALLER__)
Expand Down
2 changes: 1 addition & 1 deletion lib/ecto/type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ defmodule Ecto.Type do
end
end

# We check for the byte size to avoid creating unecessary large integers
# We check for the byte size to avoid creating unnecessary large integers
# which would never map to a database key (u64 is 20 digits only).
defp cast_integer(term) when is_binary(term) and byte_size(term) < 32 do
case Integer.parse(term) do
Expand Down

0 comments on commit 6bacf49

Please sign in to comment.