Skip to content

Commit

Permalink
Make jiffy:json_raw() public
Browse files Browse the repository at this point in the history
jiffy:json_raw is a reference(), so its opaqueness is stored within it.
With this change, it allows to check if a subterm is a json_raw with
is_reference/1
  • Loading branch information
Kuroneer committed Oct 17, 2020
1 parent 4054bc3 commit 40e8204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jiffy.erl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
-type json_string() :: atom() | binary().
-type json_number() :: integer() | float().
%% json_raw() is only returned when using options 'partial' or 'max_levels'
-opaque json_raw() :: reference().
-type json_raw() :: reference().

-ifdef(JIFFY_NO_MAPS).

Expand Down

0 comments on commit 40e8204

Please sign in to comment.