Skip to content

Commit

Permalink
Fix link to errors.As in Error types section (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvigueras committed Jul 25, 2022
1 parent ce3b9c7 commit 1e68be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion error-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,4 @@ t.Run("when you don't get a 200 you get a status error", func(t *testing.T) {
})
```

In this case we are using [`errors.As`](https://golang.org/pkg/errors/#example_As) to try and extract our error into our custom type. It returns a `bool` to denote success and extracts it into `got` for us.
In this case we are using [`errors.As`](https://pkg.go.dev/errors#example-As) to try and extract our error into our custom type. It returns a `bool` to denote success and extracts it into `got` for us.

0 comments on commit 1e68be4

Please sign in to comment.