From 8f3eb01193d2286d7ecfc167ff3ac2f17a57c215 Mon Sep 17 00:00:00 2001 From: walker flynn Date: Wed, 27 Sep 2023 18:11:00 -0700 Subject: [PATCH] Update revalidatePath.mdx to fix confusing wording of arguments section. (#56099) This part of the documentation was confusing and did not match the below examples. --- docs/02-app/02-api-reference/04-functions/revalidatePath.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/02-app/02-api-reference/04-functions/revalidatePath.mdx b/docs/02-app/02-api-reference/04-functions/revalidatePath.mdx index d2a419db65b1b..fd1ff7ab33de8 100644 --- a/docs/02-app/02-api-reference/04-functions/revalidatePath.mdx +++ b/docs/02-app/02-api-reference/04-functions/revalidatePath.mdx @@ -16,7 +16,7 @@ description: API Reference for the revalidatePath function. revalidatePath(path: string, type?: 'page' | 'layout'): void; ``` -- `path`: A string representing the filesystem path associated with the data you want to revalidate. This is the literal route segment (for example, `/product/123`) not the path on the filesystem `/product/[slug]/page`. Must be less than 1024 characters. +- `path`: Either a string representing the filesystem path associated with the data you want to revalidate (for example, `/product/[slug]/page`), or the literal route segment (for example, `/product/123`). Must be less than 1024 characters. - `type`: (optional) `'page'` or `'layout'` string to change the type of path to revalidate. ## Returns