From 15ee836ddb36f8716beaaa7834acd19b258ee8d2 Mon Sep 17 00:00:00 2001 From: Thomas Arts Date: Mon, 8 Apr 2019 11:50:12 +0200 Subject: [PATCH] Explanatory comment --- src/aeb_fate_data.erl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/aeb_fate_data.erl b/src/aeb_fate_data.erl index 1586e83..531ec9f 100644 --- a/src/aeb_fate_data.erl +++ b/src/aeb_fate_data.erl @@ -120,6 +120,9 @@ make_string(S) when is_list(S) -> ?FATE_STRING(list_to_binary(lists:flatten(S))); make_string(S) when is_binary(S) -> ?FATE_STRING(S). +%% Tag points to the selected variant (zero based) +%% The arity of this variant is read from the list of provided arities +%% and should match the size of the given tuple. make_variant(Arities, Tag, Values) -> Arities = [A || A <- Arities, is_integer(A), A < 256], Size = length(Arities),