Skip to content

Commit 307a30e

Browse files
Fix map_format examples
They were using the (now invalid) option `format`
1 parent 72dfb8c commit 307a30e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ Both at packing and unpacking. Default value is `map`.
121121

122122
```erlang
123123
msgpack:pack(#{ <<"key">> => <<"value">> }, []).
124-
msgpack:pack({[{<<"key">>, <<"value">>}]}, [{format, jiffy}]),
125-
msgpack:pack([{<<"key">>, <<"value">>}], [{format, jsx}]).
124+
msgpack:pack(#{ <<"key">> => <<"value">> }, [{map_format, map}]).
125+
msgpack:pack({[{<<"key">>, <<"value">>}]}, [{map_format, jiffy}]),
126+
msgpack:pack([{<<"key">>, <<"value">>}], [{map_format, jsx}]).
126127
```
127128

128129

0 commit comments

Comments
 (0)