Skip to content

Commit 7ef82e4

Browse files
authored
Update src/content/docs/kv/api/write-key-value-pairs.mdx
1 parent 99f4ae7 commit 7ef82e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/kv/api/write-key-value-pairs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export default {
152152
// Helper function to attempt a write to KV and handle errors
153153
const attemptWrite = async (i: number) => {
154154
try {
155-
await env.simple_kv_hono_jsx.put(key, `Write attempt #${i}`);
155+
await env. YOUR_KV_NAMESPACE.put(key, `Write attempt #${i}`);
156156
return { attempt: i, success: true };
157157
} catch (error) {
158158
// An error may be thrown if a write to the same key is made within 1 second with a message. For example:

0 commit comments

Comments
 (0)