Browse Source

Minor fixes to wording

Uman Shahzad 6 years ago
parent
commit
7e9199dec1
2 changed files with 2 additions and 2 deletions
  1. 1 1
      README.md
  2. 1 1
      src/datatypes/epgsql_codec_json.erl

+ 1 - 1
README.md

@@ -462,7 +462,7 @@ configuration like this:
 {epgsql_codec_json, JsonMod}
 
 % With options
-{epgsql_codec_json, JsonMod, EncodingOpts, DecodingOpts}
+{epgsql_codec_json, JsonMod, EncodeOpts, DecodeOpts}
 
 % Real world example using jiffy to return a map on decode
 {epgsql_codec_json, {jiffy, [], [return_maps]}}

+ 1 - 1
src/datatypes/epgsql_codec_json.erl

@@ -14,7 +14,7 @@
 -export_type([data/0, json_mod/0]).
 
 -type data() :: binary().
--type json_mod()::module() | {module(), Encode::any(), DecodeOpts::any()}.
+-type json_mod()::module() | {module(), EncodeOpts::any(), DecodeOpts::any()}.
 
 -define(JSONB_VERSION_1, 1).