From 172f5a51332b24c1027ea0f22d7e71b516dcd7d5 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Fri, 9 Nov 2018 15:07:48 +1100 Subject: Cleanups for runtime lib declarations. --- js/io.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'js/io.ts') diff --git a/js/io.ts b/js/io.ts index 74b30cd94..10908b724 100644 --- a/js/io.ts +++ b/js/io.ts @@ -116,12 +116,11 @@ export async function copy(dst: Writer, src: Reader): Promise { return n; } -/** - * Turns `r` into async iterator. +/** Turns `r` into async iterator. * - * for await (const chunk of readerIterator(reader)) { - * console.log(chunk) - * } + * for await (const chunk of readerIterator(reader)) { + * console.log(chunk) + * } */ export function toAsyncIterator(r: Reader): AsyncIterableIterator { const b = new Uint8Array(1024); -- cgit v1.2.3