Skip to content

Commit 0ba2e77

Browse files
authored
Update namespace.mdx (cloudflare#23820)
Updated jurisdiction to be an accurate option and not to repeat "foo"
1 parent 9bf5ae5 commit 0ba2e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/durable-objects/api/namespace.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const stub = env.MY_DURABLE_OBJECT.get(id);
150150
`jurisdiction` creates a subnamespace from a namespace where all Durable Object IDs and references created from that subnamespace will be restricted to the specified [jurisdiction](/durable-objects/reference/data-location/#restrict-durable-objects-to-a-jurisdiction).
151151

152152
```js
153-
const subnamespace = env.MY_DURABLE_OBJECT.jurisdiction("foo");
153+
const subnamespace = env.MY_DURABLE_OBJECT.jurisdiction("eu");
154154
const euId = subnamespace.idFromName("foo");
155155
```
156156

0 commit comments

Comments
 (0)