From fec995cd05ee4604043b4a650c6977fc78602caf Mon Sep 17 00:00:00 2001 From: Karl Velicka Date: Wed, 11 Dec 2019 15:55:59 +0000 Subject: [PATCH] capnp_schema_wrangle: fix typo --- src/capnp_schema_wrangle.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/capnp_schema_wrangle.erl b/src/capnp_schema_wrangle.erl index ad6b9e1..4134624 100644 --- a/src/capnp_schema_wrangle.erl +++ b/src/capnp_schema_wrangle.erl @@ -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)