From 02a889d7a640d0ac990b3b7c6bcc05c4f26a89fa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= <essen@ninenines.eu>
Date: Thu, 10 Oct 2019 14:40:56 +0200
Subject: Fix cookie_opts() type in code and documentation

It's supposed to be a map, not a proplist.
---
 doc/src/manual/cow_cookie.asciidoc | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

(limited to 'doc/src/manual/cow_cookie.asciidoc')

diff --git a/doc/src/manual/cow_cookie.asciidoc b/doc/src/manual/cow_cookie.asciidoc
index 0717299..2c33104 100644
--- a/doc/src/manual/cow_cookie.asciidoc
+++ b/doc/src/manual/cow_cookie.asciidoc
@@ -20,14 +20,14 @@ and manipulating cookie headers.
 
 [source,erlang]
 ----
-cookie_opts() :: [Option]
-
-Option :: {domain, binary()}
-        | {http_only, boolean()}
-        | {max_age, non_neg_integer()}
-        | {path, binary()}
-        | {same_site, lax | strict}
-        | {secure, boolean()}
+cookie_opts() :: #{
+    domain    => binary(),
+    http_only => boolean(),
+    max_age   => non_neg_integer(),
+    path      => binary(),
+    same_site => lax | strict,
+    secure    => boolean()
+}
 ----
 
 Options for the set-cookie header. They are added to the
-- 
cgit v1.2.3

