summaryrefslogtreecommitdiff
path: root/js/io.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2018-11-09 15:07:48 +1100
committerRyan Dahl <ry@tinyclouds.org>2018-11-09 08:36:31 -0800
commit172f5a51332b24c1027ea0f22d7e71b516dcd7d5 (patch)
tree73b6ff5d4e75e4b3bdabb4f1f0204199520f4c5a /js/io.ts
parent1f2c92c7c88ce6619624520ec7e6b9a1f57d445b (diff)
Cleanups for runtime lib declarations.
Diffstat (limited to 'js/io.ts')
-rw-r--r--js/io.ts9
1 files changed, 4 insertions, 5 deletions
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<number> {
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<Uint8Array> {
const b = new Uint8Array(1024);