Skip to content

Commit 0229e74

Browse files
authored
Add function head for argument names of normalize_value/2 (#466)
Without it, docs are rendered `normalize_value(arg1, value)`.
1 parent 49bb6e5 commit 0229e74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/phoenix_html/form.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ defmodule Phoenix.HTML.Form do
253253
that the textarea is rendered with no spaces after its
254254
content
255255
"""
256+
def normalize_value(type, value)
257+
256258
def normalize_value("datetime-local", %struct{} = value)
257259
when struct in [NaiveDateTime, DateTime] do
258260
<<date::10-binary, ?\s, hour_minute::5-binary, _rest::binary>> = struct.to_string(value)

0 commit comments

Comments
 (0)