Skip to content

Commit

Permalink
Merge pull request #868 from wms/patch-1
Browse files Browse the repository at this point in the history
Fix bad example codeblock in call.ts
  • Loading branch information
cowboyd authored Dec 22, 2023
2 parents b9634cc + cb56e63 commit 3b6358d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ export type Callable<T> =
* or an async function:
*
* @example
* '''ts
* ```ts
* async function* googleSlowly() {
* return yield* call(async function() {
* await new Promise(resolve => setTimeout(resolve, 2000));
* return await fetch("https://google.com");
* });
* }
* ``'
* ```
*
* It can be used to run an operation in a separate scope to ensure that any
* resources allocated will be cleaned up:
Expand Down

0 comments on commit 3b6358d

Please sign in to comment.