@@ -112,7 +112,7 @@ static size_t wasip3_io_update_code(wasip3_io_state_t *state,
112112 return WASIP3_WAITABLE_COUNT (code );
113113}
114114
115- /// Update `write ` with the result of `event` that happened.
115+ /// Update `state ` with the result of `event` that happened.
116116static size_t wasip3_io_update_event (wasip3_io_state_t * state ,
117117 wasip3_event_t * event ) {
118118 assert (event -> event == WASIP3_EVENT_STREAM_WRITE ||
@@ -209,7 +209,7 @@ static bool wasip3_start_zero_length(wasip3_io_state_t *state,
209209 return false;
210210}
211211
212- /// Starts a zero-length write on the stream pointed to by `write `.
212+ /// Starts a zero-length write on the stream pointed to by `state `.
213213///
214214/// This requires that there's no active I/O on the stream at this time and
215215/// that it's not a closed stream.
@@ -218,7 +218,7 @@ static bool wasip3_write_start_zero_length(wasip3_io_state_t *state) {
218218 state , filesystem_stream_u8_write (state -> stream , NULL , 0 ));
219219}
220220
221- /// Starts a zero-length read on the stream pointed to by `read `.
221+ /// Starts a zero-length read on the stream pointed to by `state `.
222222///
223223/// This requires that there's no active I/O on the stream at this time and
224224/// that it's not a closed stream.
@@ -227,7 +227,7 @@ static bool wasip3_read_start_zero_length(wasip3_io_state_t *state) {
227227 state , filesystem_stream_u8_read (state -> stream , NULL , 0 ));
228228}
229229
230- /// Starts a zero -length read on the stream pointed to by `read `.
230+ /// Starts a nonzero -length read on the stream pointed to by `state `.
231231///
232232/// This requires that there's no active I/O on the stream at this time and
233233/// that it's not a closed stream.
@@ -440,7 +440,7 @@ ssize_t __wasilibc_write(wasi_write_t *write, const void *buffer,
440440 }
441441
442442 // At this point we're in nonblocking mode, we're required to buffer data,
443- // and most other flags should all be turned off. Here the input `bufffer ` is
443+ // and most other flags should all be turned off. Here the input `buffer ` is
444444 // copied into the internal `state` and the I/O operation is issued.
445445 assert (state -> flags & WASIP3_IO_MUST_BUFFER );
446446 assert (!(state -> flags & WASIP3_IO_SHOULD_BE_READY ));
0 commit comments