diff --git a/docs/basics/functional-programming-and-jotai.mdx b/docs/basics/functional-programming-and-jotai.mdx
index f1e08485ef..24aa4cb4c3 100644
--- a/docs/basics/functional-programming-and-jotai.mdx
+++ b/docs/basics/functional-programming-and-jotai.mdx
@@ -16,7 +16,7 @@ const greetingAtom = atom((get) => {
const count = get(countAtom)
return (
- Hello, {nameAtom}! You have visited this page {countAtom} times.
+ Hello, {name}! You have visited this page {count} times.
)
})
@@ -32,7 +32,7 @@ const greetingPromise = (async function () {
const count = await countPromise
return (
- Hello, {nameAtom}! You have visited this page {countAtom} times.
+ Hello, {name}! You have visited this page {count} times.
)
})()