From b86e2839bc52d49c0398af13feb5f225ef64f507 Mon Sep 17 00:00:00 2001
From: Jesper Louis Andersen <jesper.louis.andersen@gmail.com>
Date: Tue, 2 Apr 2019 15:37:57 +0200
Subject: 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.
---
 doc/src/manual/cowboy_req.set_resp_cookie.asciidoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'doc/src/manual/cowboy_req.set_resp_cookie.asciidoc')

diff --git a/doc/src/manual/cowboy_req.set_resp_cookie.asciidoc b/doc/src/manual/cowboy_req.set_resp_cookie.asciidoc
index 2831059..a4bfae7 100644
--- a/doc/src/manual/cowboy_req.set_resp_cookie.asciidoc
+++ b/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
-- 
cgit v1.2.3

