Skip to content

Commit

Permalink
[#81] Improve the example by starting from stuff without parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
elbrujohalcon committed May 7, 2021
1 parent 4388e07 commit bed5d0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_app/src/macros_in_binary.erl
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
-define(NO_PARENS, <<"no_parens">>).

chunkify(<<Binary:?CHUNK_SIZE/binary, Rest/binary>>) ->
{<<(?CONCAT(Binary, Rest))/binary>>, <<(?CONCAT(Binary, Rest))/binary>>}.
{<<(?CONCAT(Binary, Rest))/binary>>, <<?CONCAT(Binary, Rest)/binary>>}.

p() ->
<<begin
X = (?A_FUNCTION(10)),
X + (?A_MACRO(X))
X + ?A_MACRO(X)
end/integer,
?NO_PARENS/binary>>.

Expand Down

0 comments on commit bed5d0e

Please sign in to comment.