Przeglądaj źródła

Fix map type spec

I was being lazy and relying on Travis. This fixes up the map spec for
newer VMs.
pull/98/head
Paul J. Davis 9 lat temu
rodzic
commit
32b89393d3
1 zmienionych plików z 8 dodań i 2 usunięć
  1. +8
    -2
      src/jiffy.erl

+ 8
- 2
src/jiffy.erl Wyświetl plik

@ -21,10 +21,16 @@
-type json_array() :: [json_value()].
-type json_string() :: atom() | binary().
-type json_number() :: integer() | float().
-ifdef(JIFFY_NO_MAPS).
-type json_object() :: {[{json_string(),json_value()}]}.
-ifndef(JIFFY_NO_MAPS).
-type #{json_string() => json_value()}.
-else.
-type json_object() :: {[{json_string(),json_value()}]}
| #{json_string() => json_value()}.
-endif.
-type jiffy_decode_result() :: json_value()

Ładowanie…
Anuluj
Zapisz