diff --git a/.changeset/odd-otters-look.md b/.changeset/odd-otters-look.md new file mode 100644 index 000000000000..18f2be20de79 --- /dev/null +++ b/.changeset/odd-otters-look.md @@ -0,0 +1,5 @@ +--- +astro: patch +--- + +Updates the documentation for experimental Content Layer API with a corrected code example diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 182345112ecd..5e060ec99034 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -2311,7 +2311,7 @@ export interface AstroUserConfig { * * const post = await getEntry('blog', Astro.params.slug); * - * const { Content, headings } = await render(entry); + * const { Content, headings } = await render(post); * --- * *