Skip to content

Commit 087d4ea

Browse files
authored
Update doc in controller.ex (#6532)
1 parent 490b9c6 commit 087d4ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/phoenix/controller.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ defmodule Phoenix.Controller do
923923
you can pass an atom instead (without the extension):
924924
925925
def show(conn, _params) do
926-
render(conn, :show.html, message: "Hello")
926+
render(conn, :show, message: "Hello")
927927
end
928928
929929
If the formats are not known at compile-time, you can call `put_view/2`

0 commit comments

Comments
 (0)