summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/odd-otters-look.md5
-rw-r--r--packages/astro/src/@types/astro.ts2
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/odd-otters-look.md b/.changeset/odd-otters-look.md
new file mode 100644
index 000000000..18f2be20d
--- /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 182345112..5e060ec99 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);
* ---
*
* <Content />