Skip to content

Commit

Permalink
Fix function name
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim authored Feb 16, 2023
1 parent b495acc commit 6ca7dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phoenix_html/form.ex
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ defmodule Phoenix.HTML.Form do
}}
end

def get(%Form{}, field) do
def fetch(%Form{}, field) do
raise ArgumentError,
"accessing a form with form[field] requires the field to be atom, got: #{inspect(field)}"
end
Expand Down

0 comments on commit 6ca7dfa

Please sign in to comment.