Skip to content

Commit

Permalink
Fix typos in Mix.Phoenix.Schema docs (#5914)
Browse files Browse the repository at this point in the history
  • Loading branch information
queirozlc authored Aug 28, 2024
1 parent 8fd7683 commit 4db970f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/mix/phoenix/schema.ex
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ defmodule Mix.Phoenix.Schema do
end

@doc """
Converts the given value to map format when it is a date, time, datetime or naive_datetime.
Converts the given value to map format when it's a date, time, datetime or naive_datetime.
Since `form.html.heex` generated by the live generator uses selects for dates and/or
times, fixtures must use map format for those fields in order to submit the live form.
Expand All @@ -228,7 +228,7 @@ defmodule Mix.Phoenix.Schema do
def live_form_value(value), do: value

@doc """
Build an invalid value for `@invalid_attrs` which is nil by default.
Builds an invalid value for `@invalid_attrs` which is nil by default.
* In case the value is a list, this will return an empty array.
* In case the value is date, datetime, naive_datetime or time, this will return an invalid date.
Expand Down Expand Up @@ -260,7 +260,7 @@ defmodule Mix.Phoenix.Schema do
end

@doc """
Return the required fields in the schema. Anything not in the `optionals` list
Returns the required fields in the schema. Anything not in the `optionals` list
is considered required.
"""
def required_fields(schema) do
Expand Down

0 comments on commit 4db970f

Please sign in to comment.