Skip to content

Commit 54e9acf

Browse files
Bugfix doc about json_format for maps
1 parent fbda672 commit 54e9acf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/gpb_compile.erl

+5-5
Original file line numberDiff line numberDiff line change
@@ -1226,8 +1226,8 @@ file(File) ->
12261226
%%
12271227
%% The `{json_format,Format}' option is a convenience shorthand, and will expand
12281228
%% as indicated below. If the json_format is not specified, it defaults to
1229-
%% `map' if the `maps' option is specified, and otherwise to `eep18' when
1230-
%% generating code for records.
1229+
%% `maps' if the <a href="#option-maps">`maps'</a> option is specified,
1230+
%% and otherwise to `eep18' when generating code for records.
12311231
%% <dl>
12321232
%% <dt>jsx</dt>
12331233
%% <dd><code>[{json_object_format, eep18},
@@ -1247,7 +1247,7 @@ file(File) ->
12471247
%% {json_array_format, list},
12481248
%% {json_string_format, binary},
12491249
%% {json_null, null}]</code></dd>
1250-
%% <dt>map</dt>
1250+
%% <dt>maps</dt>
12511251
%% <dd><code>[{json_object_format, map},
12521252
%% {json_key_format, binary},
12531253
%% {json_array_format, list},
@@ -2913,8 +2913,8 @@ c() ->
29132913
%% <dt><a id="cmdline-option-json-format"/>
29142914
%% `-json-format jsx | mochijson2 | jiffy | maps'</dt>
29152915
%% <dd>Specify format for the JSON representation.
2916-
%% `maps' is default if the `-maps' option is specified,
2917-
%% otherwise the jsx format is default.<br/>
2916+
%% `maps' is default if the <a href="#cmdline-option-maps">`-maps'</a>
2917+
%% option is specified, otherwise the jsx format is default.<br/>
29182918
%% Corresponding Erlang-level option:
29192919
%% <a href="#option-json_format">json_format</a></dd>
29202920
%% <dt><a id="cmdline-option-json-object-format"/>

0 commit comments

Comments
 (0)