Просмотр исходного кода

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 лет назад
Родитель
Сommit
b86e2839bc
1 измененных файлов с 1 добавлено и 1 удалено
  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