diff --git a/js/io.ts b/js/io.ts index 96f3561364..f7dbf33180 100644 --- a/js/io.ts +++ b/js/io.ts @@ -119,7 +119,7 @@ export async function copy(dst: Writer, src: Reader): Promise { /** Turns `r` into async iterator. * - * for await (const chunk of readerIterator(reader)) { + * for await (const chunk of toAsyncIterator(reader)) { * console.log(chunk) * } */