Skip to content

Commit 0f81545

Browse files
authored
Apply suggestions from code review
1 parent 03863e5 commit 0f81545

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ A boolean. True if equal and false otherwise.
7373
`name` is an optional property of a `DurableObjectId`, which returns the name that was used to create the `DurableObjectId` via [`DurableObjectNamespace::idFromName`](/durable-objects/api/namespace/#idfromname). This value is undefined if the `DurableObjectId` was constructed using [`DurableObjectNamespace::newUniqueId`](/durable-objects/api/namespace/#newuniqueid).
7474

7575
```js
76-
const id1 = env.MY_DURABLE_OBJECT.newUniqueId();
77-
const id2 = env.MY_DURABLE_OBJECT.idFromName("foo");
78-
console.assert(id1.name === undefined, "unique ids have no name");
79-
console.assert(id2.name === "foo", "name matches parameter to idFromName");
76+
const uniqueId = env.MY_DURABLE_OBJECT.newUniqueId();
77+
const fromNameId = env.MY_DURABLE_OBJECT.idFromName("foo");
78+
console.assert(uniqueId.name === undefined, "unique ids have no name");
79+
console.assert(fromNameId.name === "foo", "name matches parameter to idFromName");
8080
```
8181

8282
## Related resources

src/content/docs/durable-objects/reference/data-location.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const stub = env.MY_DURABLE_OBJECT.get(euId);
4747
| Parameter | Location |
4848
| --------- | ---------------------------- |
4949
| eu | The European Union |
50-
| fedramp | The United States of America |
50+
| fedramp | FedRAMP-compliant data centers |
5151

5252
## Provide a location hint
5353

0 commit comments

Comments
 (0)