Skip to content

Commit

Permalink
Elixir compatibility comment
Browse files Browse the repository at this point in the history
  • Loading branch information
davydog187 committed Jan 31, 2020
1 parent 2ddbac3 commit 1a5e382
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/avro_primitive.erl
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ string_type() -> type(?AVRO_STRING, []).
-spec cast(avro_type(), term()) -> {ok, avro_value()} | {error, term()}.
cast(Type, null) when ?IS_NULL_TYPE(Type) ->
{ok, ?AVRO_VALUE(Type, null)};
% For Elixir compatibility
cast(Type, nil) when ?IS_NULL_TYPE(Type) ->
{ok, ?AVRO_VALUE(Type, null)};
cast(Type, Value) when ?IS_BOOLEAN_TYPE(Type) andalso
Expand Down

0 comments on commit 1a5e382

Please sign in to comment.