docs: fix code block language (#72839)

## Summary
Change `jsx` to `diff` in
[next-dynamic-api-wrong-context](https://github.com/vercel/next.js/blob/canary/errors/next-dynamic-api-wrong-context.mdx)
error page.

### Improving Documentation

- [x] Run `pnpm prettier-fix` to fix formatting issues before opening
the PR.
- [x] Read the Docs Contribution Guide to ensure your contribution
follows the docs guidelines:
https://nextjs.org/docs/community/contribution-guide

Co-authored-by: Delba de Oliveira <[email protected]>
This commit is contained in:
Jam Balaya
2024-11-19 09:58:44 +00:00
committed by GitHub
co-authored by Delba de Oliveira
parent 55834d982a
commit 2a4bdbd4ab
+2 -2
View File
@@ -14,7 +14,7 @@ Make sure that all Dynamic API calls happen in a request scope.
Example:
```jsx filename="app/page.js"
```diff filename="app/page.js"
import { cookies } from 'next/headers'
- const cookieStore = cookies()
@@ -24,7 +24,7 @@ export default function Page() {
}
```
```jsx filename="app/foo/route.js"
```diff filename="app/foo/route.js"
import { headers } from 'next/headers'
- const headersList = headers()