Browse Source

Fix calling convention for set_resp_cookie/3

If not providing optional values, they are set to `#{}` and
are the last parameter according to the source code. Reflect
this in the documentation.
Jesper Louis Andersen 6 years ago
parent
commit
b86e2839bc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      doc/src/manual/cowboy_req.set_resp_cookie.asciidoc

+ 1 - 1
doc/src/manual/cowboy_req.set_resp_cookie.asciidoc

@@ -9,7 +9,7 @@ cowboy_req:set_resp_cookie - Set a cookie
 [source,erlang]
 ----
 set_resp_cookie(Name, Value, Req :: cowboy_req:req())
-    -> set_resp_cookie(Name, Value, [], Req)
+    -> set_resp_cookie(Name, Value, Req, #{})
 
 set_resp_cookie(Name, Value, Req :: cowboy_req:req(), Opts)
     -> Req