diff options
author | Damien George <damien.p.george@gmail.com> | 2018-06-20 15:56:32 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-06-20 15:56:32 +1000 |
commit | 2c8d130f702d07041e30d808b974b0ba2a1e51e0 (patch) | |
tree | 27aa3214e3fab8173687381415f7ca2a45ed6f1f /py/stream.c | |
parent | 561ae9a91bebac3184596cefc85f5cea82974aae (diff) |
py/stream: Update comment for mp_stream_write_adaptor.
Diffstat (limited to 'py/stream.c')
-rw-r--r-- | py/stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/stream.c b/py/stream.c index a65ba4c91..b9932b35e 100644 --- a/py/stream.c +++ b/py/stream.c @@ -242,7 +242,7 @@ mp_obj_t mp_stream_write(mp_obj_t self_in, const void *buf, size_t len, byte fla } } -// XXX hack +// This is used to adapt a stream object to an mp_print_t interface void mp_stream_write_adaptor(void *self, const char *buf, size_t len) { mp_stream_write(MP_OBJ_FROM_PTR(self), buf, len, MP_STREAM_RW_WRITE); } |