Skip to content

Commit

Permalink
docs: fix typos in tryit.mdx (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
danmichaelo authored Jun 26, 2023
1 parent 44e9bb8 commit 21f0b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/async/tryit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: Convert a function to an error-first async function

Error-first callbacks were cool. Using mutable variables to hoist state when doing try/catch was not cool.

The `_.try` function let's you wrap a function to convert it to an error-first async function.
The `tryit` function let's you wrap a function to convert it to an error-first async function.

```ts
import { tryit } from 'radash'
Expand All @@ -18,7 +18,7 @@ const [err, user] = await tryit(api.users.find)(userId)

### Currying

You can curry `try` if you like.
You can curry `tryit` if you like.

```ts
import { tryit } from 'radash'
Expand Down

1 comment on commit 21f0b9a

@vercel
Copy link

@vercel vercel bot commented on 21f0b9a Jun 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.