Skip to content

Commit 2c8d130

Browse files
committed
py/stream: Update comment for mp_stream_write_adaptor.
1 parent 561ae9a commit 2c8d130

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ mp_obj_t mp_stream_write(mp_obj_t self_in, const void *buf, size_t len, byte fla
242242
}
243243
}
244244

245-
// XXX hack
245+
// This is used to adapt a stream object to an mp_print_t interface
246246
void mp_stream_write_adaptor(void *self, const char *buf, size_t len) {
247247
mp_stream_write(MP_OBJ_FROM_PTR(self), buf, len, MP_STREAM_RW_WRITE);
248248
}

0 commit comments

Comments
 (0)