Skip to content

Commit

Permalink
Merge pull request #11 from kvelicka/master
Browse files Browse the repository at this point in the history
capnp_schema_wrangle: fix typo
  • Loading branch information
bucko909 authored Dec 12, 2019
2 parents fe71022 + fec995c commit e0043e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/capnp_schema_wrangle.erl
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ find_fields(TypeId, Schema) ->

name_to_type_id(Name, Schema) when is_binary(Name) ->
case binary:last(Name) of
$o ->
{Rest, <<$o>>} = erlang:split_binary(Name, erlang:byte_size(Name) - 1),
$. ->
{Rest, <<$.>>} = erlang:split_binary(Name, erlang:byte_size(Name) - 1),
{anonunion, name_to_type_id(Rest, Schema)};
_ ->
dict:fetch(Name, Schema#capnp_context.name_to_id)
Expand Down

0 comments on commit e0043e4

Please sign in to comment.