| Index: mojo/public/c/system/data_pipe.h
|
| diff --git a/mojo/public/c/system/data_pipe.h b/mojo/public/c/system/data_pipe.h
|
| index e4a15e968f91f81b43b07452961fe95e7608da64..a7498e45b3a28cc7d50de2c8f742eebfb5d59a60 100644
|
| --- a/mojo/public/c/system/data_pipe.h
|
| +++ b/mojo/public/c/system/data_pipe.h
|
| @@ -187,9 +187,10 @@ MOJO_SYSTEM_EXPORT MojoResult
|
| // that thread can then wait for |data_pipe_producer_handle| to become writable
|
| // again.
|
| //
|
| -// Once the caller has finished writing data to |*buffer|, it should call
|
| -// |MojoEndWriteData()| to specify the amount written and to complete the
|
| -// two-phase write.
|
| +// When |MojoBeginWriteData()| returns MOJO_RESULT_OK, and the caller has
|
| +// finished writing data to |*buffer|, it should call |MojoEndWriteData()| to
|
| +// specify the amount written and to complete the two-phase write.
|
| +// |MojoEndWriteData()| need not be called for other return values.
|
| //
|
| // Note: If the data pipe has the "may discard" option flag (specified on
|
| // creation) and |flags| has |MOJO_WRITE_DATA_FLAG_ALL_OR_NONE| set, this may
|
|
|