Skip to content

Commit 5920155

Browse files
docs: fixes some examples (porsager#353)
1 parent 880a98f commit 5920155

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ await sql`
341341
`.cursor(async([row]) => {
342342
// row = { x: 1 }
343343
await http.request('https://example.com/wat', { row })
344-
}
344+
})
345345
```
346346

347347
##### for await...of
@@ -366,7 +366,7 @@ await sql`
366366
await Promise.all(rows.map(row =>
367367
http.request('https://example.com/wat', { row })
368368
))
369-
}
369+
})
370370
```
371371

372372
If an error is thrown inside the callback function no more rows will be requested and the outer promise will reject with the thrown error.

0 commit comments

Comments
 (0)