Skip to content

Commit d80640c

Browse files
irisTa56josevalim
authored andcommitted
Use Plug.Conn.send_resp/3 in Module attributes section of Getting Started (elixir-lang#1293)
1 parent db8e467 commit d80640c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getting-started/module-attributes.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ defmodule MyPlug do
137137
end
138138

139139
def send_ok(conn, _opts) do
140-
send(conn, 200, "ok")
140+
send_resp(conn, 200, "ok")
141141
end
142142
end
143143

0 commit comments

Comments
 (0)