Browse Source

Update parsers.md

Change `handle_frame(Frame, Buffer)` to `handle_frame(Frame, Rest)` in the parsing binary example.
Xiao Jia 11 years ago
parent
commit
b9e684eb28
1 changed files with 1 additions and 1 deletions
  1. 1 1
      guide/parsers.md

+ 1 - 1
guide/parsers.md

@@ -80,7 +80,7 @@ The general idea stays the same though.
 << Size:32, _/bits >> = Buffer,
 << Size:32, _/bits >> = Buffer,
 case Buffer of
 case Buffer of
     << Frame:Size/binary, Rest/bits >> ->
     << Frame:Size/binary, Rest/bits >> ->
-        handle_frame(Frame, Buffer);
+        handle_frame(Frame, Rest);
     _ ->
     _ ->
         get_more_data(Buffer)
         get_more_data(Buffer)
 end.
 end.