Skip to content

Commit

Permalink
Wording
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Jul 13, 2023
1 parent 893f3f7 commit 1083c27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/docs/environments/error-files.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function NotFoundPage() {
}
```

Note however that Next.js will only render this page, when the `notFound` function is called from within a route, not for all unknown routes in general.
Note however, that Next.js will only render this page when the `notFound` function is called from within a route, not for all unknown routes in general.

### Catching unknown routes

Expand Down Expand Up @@ -71,7 +71,7 @@ export default function NotFound() {

## `error.js`

When an `error` file is defined, Next.js will create [an error boundary within your layout](https://nextjs.org/docs/app/building-your-application/routing/error-handling#how-errorjs-works) that wraps pages accordingly to catch runtime errors.
When an `error` file is defined, Next.js will create [an error boundary within your layout](https://nextjs.org/docs/app/building-your-application/routing/error-handling#how-errorjs-works) that wraps pages accordingly to catch runtime errors:

```tsx
<LocaleLayout>
Expand Down

0 comments on commit 1083c27

Please sign in to comment.