Ver a proveniência

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 há 9 anos
ascendente
cometimento
32b89393d3
1 ficheiros alterados com 8 adições e 2 eliminações
  1. +8
    -2
      src/jiffy.erl

+ 8
- 2
src/jiffy.erl Ver ficheiro

@ -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()

Carregando…
Cancelar
Guardar