From b1626197ecbc7b156403eb15d0ac8efa70440c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B3=96=E9=A5=BC?= Date: Mon, 20 Jan 2025 09:33:08 +0800 Subject: [PATCH] Fix incorrect parameter description for fetch --- src/content/docs/workers/runtime-apis/fetch.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/docs/workers/runtime-apis/fetch.mdx b/src/content/docs/workers/runtime-apis/fetch.mdx index 9f8a9d0f5de072a..78aca0b825adf40 100644 --- a/src/content/docs/workers/runtime-apis/fetch.mdx +++ b/src/content/docs/workers/runtime-apis/fetch.mdx @@ -62,7 +62,7 @@ async function eventHandler(event) { -* fetch(resource, options optional) : Promise`` +* fetch(request, options optional) : Promise`` * Fetch returns a promise to a Response. @@ -72,7 +72,7 @@ async function eventHandler(event) { -* [`resource`](https://developer.mozilla.org/en-US/docs/Web/API/fetch#resource) Request | string | URL +* [`request`](https://developer.mozilla.org/en-US/docs/Web/API/fetch#request) Request | string | URL * `options` options * `cache` `undefined | 'no-store'` optional @@ -124,4 +124,4 @@ export default { * [Example: Fetch HTML](/workers/examples/fetch-html/) * [Example: Fetch JSON](/workers/examples/fetch-json/) * [Example: cache using Fetch](/workers/examples/cache-using-fetch/) -* Write your Worker code in [ES modules syntax](/workers/reference/migrate-to-module-workers/) for an optimized experience. \ No newline at end of file +* Write your Worker code in [ES modules syntax](/workers/reference/migrate-to-module-workers/) for an optimized experience.