Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
include: update confusing uv_write comment
  • Loading branch information
bnoordhuis committed Jul 27, 2012
1 parent cf05c5f commit 9123482
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/uv.h
Expand Up @@ -539,9 +539,12 @@ UV_EXTERN int uv_read2_start(uv_stream_t*, uv_alloc_cb alloc_cb,
* { .base = "4", .len = 1 }
* };
*
* uv_write_t req1;
* uv_write_t req2;
*
* // writes "1234"
* uv_write(req, stream, a, 2);
* uv_write(req, stream, b, 2);
* uv_write(&req1, stream, a, 2);
* uv_write(&req2, stream, b, 2);
*
*/
UV_EXTERN int uv_write(uv_write_t* req, uv_stream_t* handle,
Expand Down

0 comments on commit 9123482

Please sign in to comment.