Skip to content

Commit 4c2f919

Browse files
authored
Apply suggestions from code review
1 parent ab4cd85 commit 4c2f919

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/content/docs/durable-objects/best-practices/create-durable-object-stubs-and-send-requests.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Refer to [Build a Counter](/durable-objects/examples/build-a-counter/) for a com
2929

3030
### Invoking the `fetch` handler
3131

32-
If your project is stuck on a compatibility date before [`2024-04-03`](/workers/configuration/compatibility-dates/#durable-object-stubs-and-service-bindings-support-rpc) or has the need to send a [`Request`](/workers/runtime-apis/request/) object and return a `Response` object then you should send requests to a Durable Object via the fetch handler.
32+
If your project is stuck on a compatibility date before [`2024-04-03`](/workers/configuration/compatibility-dates/#durable-object-stubs-and-service-bindings-support-rpc), or has the need to send a [`Request`](/workers/runtime-apis/request/) object and return a `Response` object, then you should send requests to a Durable Object via the fetch handler.
3333

3434
<Tabs> <TabItem label="JavaScript" icon="seti:javascript">
3535

@@ -105,7 +105,7 @@ export default {
105105

106106
The `URL` associated with the [`Request`](/workers/runtime-apis/request/) object passed to the `fetch()` handler of your Durable Object must be a well-formed URL, but does not have to be a publicly-resolvable hostname.
107107

108-
Without RPC customers frequently construct requests which corresponded to private methods on the Durable Object and dispatch requests from the `fetch` handler. RPC is obviously more ergonomic in this example.
108+
Without RPC, customers frequently construct requests which corresponded to private methods on the Durable Object and dispatch requests from the `fetch` handler. RPC is obviously more ergonomic in this example.
109109

110110
<Tabs> <TabItem label="JavaScript" icon="seti:javascript">
111111

src/content/docs/durable-objects/get-started/walkthrough.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export default {
174174

175175
## 5. Configure Durable Object bindings
176176

177-
To allow a Worker to invoke methods on a Durable Object instance the Worker must have a [Durable Object binding](/workers/runtime-apis/bindings/) in the project's [`wrangler.toml`](/workers/wrangler/configuration/#durable-objects) file. The binding is configured to use a particular Durable Object class.
177+
To allow a Worker to invoke methods on a Durable Object instance, the Worker must have a [Durable Object binding](/workers/runtime-apis/bindings/) in the project's [`wrangler.toml`](/workers/wrangler/configuration/#durable-objects) file. The binding is configured to use a particular Durable Object class.
178178

179179
```toml
180180
[[durable_objects.bindings]]

0 commit comments

Comments
 (0)