Browse Source

Merge branch 'master' of git://github.com/stfairy/ranch

Loïc Hoguin 11 years ago
parent
commit
c1d0c4571e
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.