Skip to content

Commit

Permalink
chore(docs): fix typo in generate metadata docs (#52904)
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Jul 19, 2023
1 parent 08e87fb commit b12e6fe
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ export async function generateMetadata(
export default function Page({ params, searchParams }: Props) {}
```

```
jsx filename="app/products/[id]/page.js" switcher
```jsx filename="app/products/[id]/page.js" switcher
export async function generateMetadata({ params, searchParams }, parent) {
// read route params
const id = params.id
Expand Down

0 comments on commit b12e6fe

Please sign in to comment.