diff --git a/docs/basic-features/data-fetching.md b/docs/basic-features/data-fetching.md index d21a63083f1c9ae4c52b2a03403fe6f4f77876f9..1e35937802883e3ede051ce502559623c426319d 100644 --- a/docs/basic-features/data-fetching.md +++ b/docs/basic-features/data-fetching.md @@ -156,7 +156,7 @@ export async function getStaticProps() { const res = await fetch('https://.../posts') const posts = await res.json() - // By returning { props: posts }, the Blog component + // By returning { props: { posts } }, the Blog component // will receive `posts` as a prop at build time return { props: { @@ -325,7 +325,7 @@ export async function getStaticProps() { content: fileContents, } }) - // By returning { props: posts }, the Blog component + // By returning { props: { posts } }, the Blog component // will receive `posts` as a prop at build time return { props: {