Skip to content

Commit

Permalink
Fixed typo - 'cunksize' -> 'chunksize'
Browse files Browse the repository at this point in the history
  • Loading branch information
DuskyElf authored and happi committed Feb 12, 2024
1 parent 9335f44 commit e034df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/beam_modules.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ We can parse out the code chunk by adding the following code to our program:
parse_chunks([{"Code", Size, <<SubSize:32/integer,Chunk/binary>>
} | Rest], Acc) ->
<<Info:SubSize/binary, Code/binary>> = Chunk,
%% 8 is size of CunkSize & SubSize
%% 8 is size of ChunkSize & SubSize
OpcodeSize = Size - SubSize - 8,
<<OpCodes:OpcodeSize/binary, _Align/binary>> = Code,
parse_chunks(Rest,[{code,parse_code_info(Info), OpCodes}
Expand Down

0 comments on commit e034df9

Please sign in to comment.