From 307a30ea4f04e5cebf753373623e6167779895ab Mon Sep 17 00:00:00 2001 From: Brujo Benavides Date: Tue, 17 Apr 2018 11:54:11 -0300 Subject: [PATCH] Fix map_format examples They were using the (now invalid) option `format` --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1115e46..bf320df 100644 --- a/README.md +++ b/README.md @@ -121,8 +121,9 @@ Both at packing and unpacking. Default value is `map`. ```erlang msgpack:pack(#{ <<"key">> => <<"value">> }, []). -msgpack:pack({[{<<"key">>, <<"value">>}]}, [{format, jiffy}]), -msgpack:pack([{<<"key">>, <<"value">>}], [{format, jsx}]). +msgpack:pack(#{ <<"key">> => <<"value">> }, [{map_format, map}]). +msgpack:pack({[{<<"key">>, <<"value">>}]}, [{map_format, jiffy}]), +msgpack:pack([{<<"key">>, <<"value">>}], [{map_format, jsx}]). ```