Skip to content

Commit 4a1bedf

Browse files
authored
Correct documentation for empty_values in Changeset.validate_required/3 (#4810)
1 parent ca9eee4 commit 4a1bedf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/ecto/changeset.ex‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2574,7 +2574,7 @@ defmodule Ecto.Changeset do
25742574
are required.
25752575
25762576
If the value of a field is `nil` or matches any of the values
2577-
configured in `changeset.empty_values` (by default `[]` and `""`),
2577+
configured in `changeset.empty_values` (by default `""`),
25782578
the changeset is marked as invalid, the field is removed from the
25792579
changeset's changes, and an error is added. An error won't be added
25802580
if the field already has an error.

0 commit comments

Comments
 (0)