Skip to content

Commit 7bc2770

Browse files
author
Daniil Fedotov
committed
Comment on binary format values
1 parent 6ad1cd1 commit 7bc2770

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/term_to_binary_compat.erl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
queue_name_to_binary(#resource{kind = queue} = {resource, VHost, queue, Name}) ->
2424
VHostBSize = byte_size(VHost),
2525
NameBSize = byte_size(Name),
26-
<<131,
27-
104, 4,
28-
100, 0, 8, "resource",
29-
109, VHostBSize:32, VHost/binary,
30-
100, 0, 5, "queue",
31-
109, NameBSize:32, Name/binary>>.
26+
<<131, %% Binary format "version"
27+
104, 4, %% 4-element tuple
28+
100, 0, 8, "resource", %% `resource` atom
29+
109, VHostBSize:32, VHost/binary, %% Vhost binary
30+
100, 0, 5, "queue", %% `queue` atom
31+
109, NameBSize:32, Name/binary>>. %% Name binary
3232

0 commit comments

Comments
 (0)