From 54e9acf2aa602164f89551c1dd4b9d3f792bd70f Mon Sep 17 00:00:00 2001 From: Tomas Abrahamsson Date: Wed, 14 Feb 2024 20:12:54 +0100 Subject: [PATCH] Bugfix doc about json_format for maps --- src/gpb_compile.erl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gpb_compile.erl b/src/gpb_compile.erl index d5ecf33..6329e68 100644 --- a/src/gpb_compile.erl +++ b/src/gpb_compile.erl @@ -1226,8 +1226,8 @@ file(File) -> %% %% The `{json_format,Format}' option is a convenience shorthand, and will expand %% as indicated below. If the json_format is not specified, it defaults to -%% `map' if the `maps' option is specified, and otherwise to `eep18' when -%% generating code for records. +%% `maps' if the `maps' option is specified, +%% and otherwise to `eep18' when generating code for records. %%
%%
jsx
%%
[{json_object_format, eep18}, @@ -1247,7 +1247,7 @@ file(File) -> %% {json_array_format, list}, %% {json_string_format, binary}, %% {json_null, null}]
-%%
map
+%%
maps
%%
[{json_object_format, map}, %% {json_key_format, binary}, %% {json_array_format, list}, @@ -2913,8 +2913,8 @@ c() -> %%
%% `-json-format jsx | mochijson2 | jiffy | maps'
%%
Specify format for the JSON representation. -%% `maps' is default if the `-maps' option is specified, -%% otherwise the jsx format is default.
+%% `maps' is default if the
`-maps' +%% option is specified, otherwise the jsx format is default.
%% Corresponding Erlang-level option: %% json_format
%%