Skip to content

Commit

Permalink
Apply sentance edits from code review to cloudflare Wasm readme
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
adrianlyjak and sarah11918 authored Sep 22, 2023
1 parent 7ee3948 commit 6a806ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/integrations/cloudflare/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export default defineConfig({

Once enabled, you can import a web assembly module in Astro with a `.wasm?module` import.

The following is a simple example of importing a Wasm module that then responds to requests by adding the request's number parameters together. A request to `/add/40/2` would return a response of `42`.
The following is an example of importing a Wasm module that then responds to requests by adding the request's number parameters together.

```javascript
// pages/add/[a]/[b].js
Expand All @@ -232,7 +232,7 @@ export async function GET(context) {
}
```

While this example is trivial, Wasm can be used to accelerate computationally intensive operations which do not involve significant I/O. For example, embedding an image processing library.
While this example is trivial, Wasm can be used to accelerate computationally intensive operations which do not involve significant I/O such as embedding an image processing library.

## Headers, Redirects and function invocation routes

Expand Down

0 comments on commit 6a806ef

Please sign in to comment.