Browse Source

Clarify a multipart example

Loïc Hoguin 7 years ago
parent
commit
bec019dce5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      doc/src/guide/multipart.asciidoc

+ 2 - 2
doc/src/guide/multipart.asciidoc

@@ -112,9 +112,9 @@ multipart(Req0) ->
 
 stream_file(Req0) ->
     case cowboy_req:read_part_body(Req0) of
-        {ok, _Body, Req} ->
+        {ok, _LastBodyChunk, Req} ->
             Req;
-        {more, _Body, Req} ->
+        {more, _BodyChunk, Req} ->
             stream_file(Req)
     end.
 ----